mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #3331 from laytan/darwin-fix-entrypoint-warning-dylibs
darwin: fix linker warning when building dynamic library
This commit is contained in:
+4
-2
@@ -508,8 +508,10 @@ gb_internal i32 linker_stage(LinkerData *gen) {
|
|||||||
link_settings = gb_string_append_fmt(link_settings, "-mmacosx-version-min=%.*s ", LIT(build_context.minimum_os_version_string));
|
link_settings = gb_string_append_fmt(link_settings, "-mmacosx-version-min=%.*s ", LIT(build_context.minimum_os_version_string));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This points the linker to where the entry point is
|
if (build_context.build_mode != BuildMode_DynamicLibrary) {
|
||||||
link_settings = gb_string_appendc(link_settings, "-e _main ");
|
// This points the linker to where the entry point is
|
||||||
|
link_settings = gb_string_appendc(link_settings, "-e _main ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!build_context.no_crt) {
|
if (!build_context.no_crt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user