summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <[email protected]>2018-12-17 17:07:38 +0100
committerMichele Calgaro <[email protected]>2018-12-18 21:20:21 +0900
commit106e19229e2bba6222753d48b32da57d77a00a15 (patch)
tree11dada73dd370918e88cff9ab8b1b79fda5cb82b
parent48fe3cf3c8d7c622f13e231cc11386046141a342 (diff)
downloadtdevelop-106e19229e2bba6222753d48b32da57d77a00a15.tar.gz
tdevelop-106e19229e2bba6222753d48b32da57d77a00a15.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]> (cherry picked from commit 09deb6aa1a5a78793aa7abe8848df6056560fae1)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 621eeed9..7085a0d5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -154,8 +154,8 @@ if( NOT WITH_DEPRECATION )
endif( )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
-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" )
##### install data ##############################