mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fixed git issue..
This commit is contained in:
@@ -484,9 +484,11 @@ gb_internal i32 linker_stage(LinkerData *gen) {
|
|||||||
defer (gb_string_free(platform_lib_str));
|
defer (gb_string_free(platform_lib_str));
|
||||||
if (build_context.metrics.os == TargetOs_darwin) {
|
if (build_context.metrics.os == TargetOs_darwin) {
|
||||||
platform_lib_str = gb_string_appendc(platform_lib_str, "-lm -Wl,-syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -L/usr/local/lib");
|
platform_lib_str = gb_string_appendc(platform_lib_str, "-lm -Wl,-syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -L/usr/local/lib");
|
||||||
|
#if defined(GB_SYSTEM_OSX)
|
||||||
if(gen->needs_system_library_linked) {
|
if(gen->needs_system_library_linked) {
|
||||||
platform_lib_str = gb_string_appendc(platform_lib_str, "-lSystem");
|
platform_lib_str = gb_string_appendc(platform_lib_str, "-lSystem");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
platform_lib_str = gb_string_appendc(platform_lib_str, "-lc -lm");
|
platform_lib_str = gb_string_appendc(platform_lib_str, "-lc -lm");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user