Fixed: don't use GNU linker options with BSD's linker installed on mac os x
This commit is contained in:
parent
be0cf4a0e1
commit
3e1078cae7
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ MACRO(NL_SETUP_BUILD)
|
||||||
IF(WITH_COVERAGE)
|
IF(WITH_COVERAGE)
|
||||||
SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}")
|
SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}")
|
||||||
ENDIF(WITH_COVERAGE)
|
ENDIF(WITH_COVERAGE)
|
||||||
|
IF(NOT APPLE)
|
||||||
SET(PLATFORM_LINKFLAGS "-Wl,--no-undefined -Wl,--as-needed")
|
SET(PLATFORM_LINKFLAGS "-Wl,--no-undefined -Wl,--as-needed")
|
||||||
|
ENDIF(NOT APPLE)
|
||||||
SET(NL_DEBUG_CFLAGS "-DNL_DEBUG -g")
|
SET(NL_DEBUG_CFLAGS "-DNL_DEBUG -g")
|
||||||
SET(NL_RELEASE_CFLAGS "-DNL_RELEASE -O6 -g")
|
SET(NL_RELEASE_CFLAGS "-DNL_RELEASE -O6 -g")
|
||||||
SET(NL_NONE_CFLAGS "-DNL_RELEASE -g -finline-functions -O2 ")
|
SET(NL_NONE_CFLAGS "-DNL_RELEASE -g -finline-functions -O2 ")
|
||||||
|
|
Loading…
Reference in a new issue