From 10627d2ed502a30551e301717ebec98197442f89 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sun, 11 Apr 2021 11:35:08 +0200 Subject: [PATCH] Do not overwrite default linker flags so that LDFLAGS environment variable is considered --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb095bed1..be83caa5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,7 @@ if(UNIX AND NOT APPLE) if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") get_filename_component(LINKER_BIN ${CMAKE_LINKER} NAME) if(${LINKER_BIN} STREQUAL "ld") - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--unresolved-symbols=report-all") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--unresolved-symbols=report-all") endif() endif() endif()