diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-12-28 14:09:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-28 14:09:42 +0000 |
| commit | 78359f0c165fd0a62278492e81e15c99a96f37bc (patch) | |
| tree | 3ba074a2a1a8f3f4e20b438f0dc537908dfb07f2 | |
| parent | 3f8c6a67458e223c5ed2dcce461d349c11dfb9e7 (diff) | |
| parent | 92ce7defb12436b81eb1f2c19fa1e01be4a8ead3 (diff) | |
Merge pull request #1379 from weshardee/master
___$startup_runtime for MacOS
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7b4bc92ee..36b30112f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -439,13 +439,14 @@ i32 linker_stage(lbGenerator *gen) { // so use ld instead. // :UseLDForShared linker = "ld"; - link_settings = gb_string_appendc(link_settings, "-init '__$startup_runtime' "); // Shared libraries are .dylib on MacOS and .so on Linux. #if defined(GB_SYSTEM_OSX) output_ext = STR_LIT(".dylib"); + link_settings = gb_string_appendc(link_settings, "-init '___$startup_runtime' "); link_settings = gb_string_appendc(link_settings, "-dylib -dynamic "); #else output_ext = STR_LIT(".so"); + link_settings = gb_string_appendc(link_settings, "-init '__$startup_runtime' "); link_settings = gb_string_appendc(link_settings, "-shared "); #endif } else { |