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:31:21 +0900
commit7f07615fb169a7c07b69ad8c56c31f171c13f1e7 (patch)
tree28f044a09cd2a130de0fd203d4aac597a1014c72
parentfefbc93df6f75a1ac719a4e6dedb56c4bd87a95f (diff)
downloadtdesdk-7f07615fb169a7c07b69ad8c56c31f171c13f1e7.tar.gz
tdesdk-7f07615fb169a7c07b69ad8c56c31f171c13f1e7.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 40e8647c13cfed704fb761d75a6e27fee657ee7f)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1fd351df..dde6a886 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,8 +85,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" )
##### tdesdk directories ########################