summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <[email protected]>2018-12-17 17:07:38 +0100
committerMichele Calgaro <[email protected]>2018-12-18 22:47:05 +0900
commit5643f98d6c6f054d64c166ff8062af7576898428 (patch)
treeb37263720c079e832da934d797ae3bb6f18dc4bb
parent7422af7c1fb9accde0b1880b4eb6a58e2244b6ce (diff)
downloadtdeio-umountwrapper-5643f98d6c6f054d64c166ff8062af7576898428.tar.gz
tdeio-umountwrapper-5643f98d6c6f054d64c166ff8062af7576898428.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]> (cherry picked from commit 18cad6481d647af550cfc43845f521c7ca8633ca)
-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