summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-01-28 14:30:50 +0000
committerGitHub <noreply@github.com>2019-01-28 14:30:50 +0000
commiteee0eddbb47fcf02a01c9afa3699af22c3196c57 (patch)
treee1621475e2b6e0482931de0cb8de3bc19de4e742
parentf4303095fad0731b34638859c786320fb76251eb (diff)
parentd4ce49b2db7851dea421be8e00d19905b751ef1f (diff)
Merge pull request #8261 from vespa-engine/toregge/enable-cppunit-tests-in-shared-libs-on-ubuntu
Enable cppunit tests in shared libraries.
-rw-r--r--build_settings.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_settings.cmake b/build_settings.cmake
index 1bb5ed8baa0..e919641ba5b 100644
--- a/build_settings.cmake
+++ b/build_settings.cmake
@@ -101,3 +101,6 @@ endif()
# Don't allow unresolved symbols in executables or shared libraries
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
+
+# Enable cppunit tests in shared libraries
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed")