Remove Bsymbolic linker flag
Bsymbolic prevents DSO exceptions from being handled by the calling application. This was added when some toolchains did not fully support the -fhidden-visibility setting. Every platform now support it, so we can remove the hammer. See https://bugs.launchpad.net/kicad/+bug/1322354 for original details
This commit is contained in:
parent
59d9a9f454
commit
5619cc41f9
|
@ -344,13 +344,6 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
||||||
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
|
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||||
|
|
||||||
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-s" )
|
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-s" )
|
||||||
|
|
||||||
# Defeat ELF's ability to use the GOT to replace locally implemented functions
|
|
||||||
# with ones from another module.
|
|
||||||
# https://bugs.launchpad.net/kicad/+bug/1322354
|
|
||||||
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic" )
|
|
||||||
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-Bsymbolic" )
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( APPLE )
|
if( APPLE )
|
||||||
|
|
Loading…
Reference in New Issue