summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:38 +0100
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-12-18 21:55:09 +0900
commit3a5f149dbfd6c3bba9ad4c4c768c2fcfd0b78d63 (patch)
treef70d611d8ea5b1026627cc2d3b942fb330c8fdbd
parent9b9f3d672cc94891c0681bf0ad7af2dd4952ad2c (diff)
downloadtdegames-3a5f149dbfd6c3bba9ad4c4c768c2fcfd0b78d63.tar.gz
tdegames-3a5f149dbfd6c3bba9ad4c4c768c2fcfd0b78d63.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <rossi.f@inwind.it> (cherry picked from commit 84aad3784917007bd90a615a7077c70ea0895f71)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 509e1095..73851e72 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -103,8 +103,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" )
if( WITH_TEST )
enable_testing()