Sfoglia il codice sorgente

Maybe macOS needs -fno-common ...?

Ryan C. Gordon 8 anni fa
parent
commit
9ae6fc9e87
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -25,7 +25,7 @@ endif()
 include_directories(./src)
 
 if(APPLE)
-    set(OTHER_LDFLAGS ${OTHER_LDFLAGS} "-framework CoreFoundation -framework IOKit")
+    set(OTHER_LDFLAGS ${OTHER_LDFLAGS} "-fno-common -framework CoreFoundation -framework IOKit")
 endif()
 
 if(CMAKE_COMPILER_IS_GNUCC)