summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <[email protected]>2018-12-17 17:07:37 +0100
committerMichele Calgaro <[email protected]>2018-12-18 23:29:14 +0900
commit167d91eee60493ff4e9fcb8e99ab95782bc3ea7c (patch)
tree1ce232b03fb8a7064fb45499d81a02731f501d52
parentd143122bb4d92f70d770059f1fefb54d4403b571 (diff)
downloadkdirstat-167d91eee60493ff4e9fcb8e99ab95782bc3ea7c.tar.gz
kdirstat-167d91eee60493ff4e9fcb8e99ab95782bc3ea7c.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]> (cherry picked from commit 74917182318a0d30b727059d663fcb738195d957)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index abea8b4..901930d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,8 +61,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