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:14:58 +0900
commitf5fd24cadcb0874ddf451f40e6fae92686450100 (patch)
tree4fdbb5a01b10c0cd6fc395e821e906122219298f
parent4fa057f30626eb0d43ec39d44b773b5f258883b6 (diff)
downloadtdeartwork-f5fd24cadcb0874ddf451f40e6fae92686450100.tar.gz
tdeartwork-f5fd24cadcb0874ddf451f40e6fae92686450100.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]> (cherry picked from commit 3bda3e2dc41e05846902d1f7660a79177f2e5984)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8a48f624..6d72c744 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,8 +79,8 @@ add_definitions(
)
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" )
##### tdenetwork directories ####################