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

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 3b0c7e896c
commit 4f5d3afd51

@ -926,7 +926,12 @@ MACRO(NL_SETUP_BUILD)
ENDIF()
# 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)
SET(NL_RELEASE_CFLAGS "${NL_RELEASE_CFLAGS} -g")

Loading…
Cancel
Save