From 4f5d3afd51638e22acf787327e00d50d03f00731 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 26 Nov 2016 15:59:43 +0100 Subject: [PATCH] Fixed: -Wl,-Bsymbolic-functions doesn't exist under OS X --HG-- branch : develop --- code/CMakeModules/nel.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index 819e260f4..7b74b5d47 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -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")