From 780dda598c2d91b1001f15a58bc23674a8db0852 Mon Sep 17 00:00:00 2001
From: Fabio Rossi <rossi.f@inwind.it>
Date: Mon, 17 Dec 2018 17:07:38 +0100
Subject: 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)
---
 CMakeLists.txt | 4 ++--
 1 file 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 )
 
-- 
cgit v1.2.1