Kaynağa Gözat

Maybe macOS needs -fno-common ...?

Ryan C. Gordon 8 yıl önce
ebeveyn
işleme
9ae6fc9e87
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

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