Browse Source

Fix https://github.com/odin-lang/Odin/issues/555

Oskar Nordquist 5 năm trước cách đây
mục cha
commit
0b299cb8b4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/main.cpp

+ 2 - 2
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 = "";