summaryrefslogtreecommitdiffstats
path: root/build_settings.cmake
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-05-12 15:09:50 +0200
committerTor Egge <Tor.Egge@online.no>2021-05-12 15:09:50 +0200
commita88242c66c312e3a19c5ad1db9374fd4e86bbae6 (patch)
tree2e504e58ff773191c66461b2572298500177237c /build_settings.cmake
parente8a424601463d91fc4e4f7dce4bd9ff57b87dcb8 (diff)
Enable more fine grained control of linker options for shared libraries.
Diffstat (limited to 'build_settings.cmake')
-rw-r--r--build_settings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_settings.cmake b/build_settings.cmake
index 414d73b2013..10f4c7ff926 100644
--- a/build_settings.cmake
+++ b/build_settings.cmake
@@ -178,7 +178,7 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
else()
if(NOT VESPA_USE_SANITIZER OR NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# Don't allow unresolved symbols in shared libraries
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
+ set(VESPA_DISALLOW_UNRESOLVED_SYMBOLS_IN_SHARED_LIBRARIES "-Wl,--no-undefined")
endif()
# Don't allow unresolved symbols in executables
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")