aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorOskar Nordquist <oskar.nordquist@gmail.com>2020-02-05 20:48:18 +0100
committerOskar Nordquist <oskar.nordquist@gmail.com>2020-02-05 20:48:18 +0100
commit0b299cb8b43b1382d81c8e1a2df14ca96c5921b2 (patch)
tree6ec435615327070da241d94eed15c71007f13fc8 /src/main.cpp
parentfbe2366af34d077e9ddf8e1a3e0bfae4c1f586ab (diff)
Fix https://github.com/odin-lang/Odin/issues/555
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 317e8f577..338bb3f5f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1504,11 +1504,11 @@ int main(int arg_count, char const **arg_ptr) {
// Shared libraries are .dylib on MacOS and .so on Linux.
#if defined(GB_SYSTEM_OSX)
output_ext = STR_LIT(".dylib");
+ link_settings = "-dylib -dynamic";
#else
output_ext = STR_LIT(".so");
+ link_settings = "-shared";
#endif
-
- link_settings = "-shared";
} else {
// TODO: Do I need anything here?
link_settings = "";