summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:37 +0100
committerFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:37 +0100
commit3a666417b420ef395d199f66c8efc8b4bfcc59cb (patch)
treeed63f3a1d9db5fa42708db75cc4fc9afce285d6f
parentd9f2c38d4edd4e6a4a649f1e269dcdb20ec7635e (diff)
downloadkgtk-qt3-3a666417b420ef395d199f66c8efc8b4bfcc59cb.tar.gz
kgtk-qt3-3a666417b420ef395d199f66c8efc8b4bfcc59cb.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 832bc02..68ce911 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,8 +75,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" )
##### source directories ########################