summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <[email protected]>2018-12-17 17:07:37 +0100
committerMichele Calgaro <[email protected]>2018-12-18 23:44:53 +0900
commit551feef9c25ec3d89cd01c1a46686cbc4ceb8cc8 (patch)
treed052a16eec83d12f6bca262829a0b009eda8dd12
parent533f95a0a92a7f8b469ee0ef9d9d0b243c2feb9b (diff)
downloadamarok-551feef9c25ec3d89cd01c1a46686cbc4ceb8cc8.tar.gz
amarok-551feef9c25ec3d89cd01c1a46686cbc4ceb8cc8.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]> (cherry picked from commit ab1673d8bac982efe624253525ee04f26c68c1e6)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6080c379..f8138591 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,8 +77,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 ########################