From 169d30ec92e54e9454d777e45b943ae161f7d830 Mon Sep 17 00:00:00 2001 From: Fabio Rossi Date: Mon, 17 Dec 2018 17:07:37 +0100 Subject: [PATCH] Avoid overriding user linker flags (LDFLAGS) for modules and shared libs Signed-off-by: Fabio Rossi (cherry picked from commit 4702db0e8bd645a41f448f14f3592ae57ab70112) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd15045..dd2a637 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,8 +67,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" ) ##### filelight directories #####################