Fixed: -Wl,-Bsymbolic-functions doesn't exist under OS X

This commit is contained in:
kervala 2016-11-26 15:59:43 +01:00
parent eb25dfdd2c
commit 2a5323c45e

View file

@ -926,7 +926,12 @@ MACRO(NL_SETUP_BUILD)
ENDIF() ENDIF()
# hardening # hardening
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now") SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-z,relro -Wl,-z,now")
IF(NOT APPLE)
# hardening
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-Bsymbolic-functions")
ENDIF()
IF(WITH_SYMBOLS) IF(WITH_SYMBOLS)
SET(NL_RELEASE_CFLAGS "${NL_RELEASE_CFLAGS} -g") SET(NL_RELEASE_CFLAGS "${NL_RELEASE_CFLAGS} -g")