[Orxonox-commit 3662] r8347 - code/branches/kicklib2/cmake

rgrieder at orxonox.net rgrieder at orxonox.net
Wed Apr 27 21:45:02 CEST 2011


Author: rgrieder
Date: 2011-04-27 21:45:02 +0200 (Wed, 27 Apr 2011)
New Revision: 8347

Modified:
   code/branches/kicklib2/cmake/CompilerConfigGCC.cmake
Log:
No --no-undefined for apple.

Modified: code/branches/kicklib2/cmake/CompilerConfigGCC.cmake
===================================================================
--- code/branches/kicklib2/cmake/CompilerConfigGCC.cmake	2011-04-27 19:30:08 UTC (rev 8346)
+++ code/branches/kicklib2/cmake/CompilerConfigGCC.cmake	2011-04-27 19:45:02 UTC (rev 8347)
@@ -100,8 +100,11 @@
   ADD_COMPILER_FLAGS("-Wall" CACHE)
 ENDIF()
 
-# General linker flags
-SET_LINKER_FLAGS("-Wl,--no-undefined" CACHE)
+# Linker flags
+IF(LINUX)
+  # Don't allow undefined symbols in a shared library
+  SET_LINKER_FLAGS("-Wl,--no-undefined" CACHE)
+ENDIF()
 
 # Add compiler and linker flags for MinGW
 IF (MINGW)




More information about the Orxonox-commit mailing list