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:42:40 +0900
commit4c3e404cd130532c144f82ae2e210e40451c1b65 (patch)
tree916f34e3860a496a7831ce59ceb5ca60dd119f07
parent82594aaa3e9fca92b7c86579fb50d15103d88795 (diff)
downloaddolphin-4c3e404cd130532c144f82ae2e210e40451c1b65.tar.gz
dolphin-4c3e404cd130532c144f82ae2e210e40451c1b65.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]> (cherry picked from commit 88119a94df89384d9d6be4596219ed481a07359e)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ad12f5..384b3e9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,8 +57,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 ########################