summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:38 +0100
committerFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:38 +0100
commit18cad6481d647af550cfc43845f521c7ca8633ca (patch)
tree2e0fcbb04d1d3cfabb2473335f7e1d24434e89e6
parentce24f7e8bee0d70bdebe4e979eaefdb56c1b3ebb (diff)
downloadtdeio-umountwrapper-18cad6481d647af550cfc43845f521c7ca8633ca.tar.gz
tdeio-umountwrapper-18cad6481d647af550cfc43845f521c7ca8633ca.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d7b4f12..ab73e47 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,8 +59,8 @@ include( ConfigureChecks.cmake )
add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
##### directories