From 3e1078cae7ac63b0f47ceee59450c3e7cfec5019 Mon Sep 17 00:00:00 2001 From: rti Date: Thu, 9 Sep 2010 14:57:59 +0200 Subject: [PATCH] Fixed: don't use GNU linker options with BSD's linker installed on mac os x --- code/CMakeModules/nel.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index a3e320e7a..bf50e5b73 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -274,7 +274,9 @@ MACRO(NL_SETUP_BUILD) IF(WITH_COVERAGE) SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}") ENDIF(WITH_COVERAGE) - SET(PLATFORM_LINKFLAGS "-Wl,--no-undefined -Wl,--as-needed") + IF(NOT APPLE) + SET(PLATFORM_LINKFLAGS "-Wl,--no-undefined -Wl,--as-needed") + ENDIF(NOT APPLE) SET(NL_DEBUG_CFLAGS "-DNL_DEBUG -g") SET(NL_RELEASE_CFLAGS "-DNL_RELEASE -O6 -g") SET(NL_NONE_CFLAGS "-DNL_RELEASE -g -finline-functions -O2 ")