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 22:06:57 +0900
commit780dda598c2d91b1001f15a58bc23674a8db0852 (patch)
tree5688936de6696d785a2bfa2940fc9dcee9d76f53
parent30ca4384966516135b5680e298fe3e01963ceb18 (diff)
downloadtdebase-780dda598c2d91b1001f15a58bc23674a8db0852.tar.gz
tdebase-780dda598c2d91b1001f15a58bc23674a8db0852.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 3cad9663dfd66a3787b16ca2a396f0a709946ee1)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0015124b2..b613eb84f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -209,8 +209,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" )
check_type_size( "long long" LONG_LONG )