1From c347aeb43775109cbc2824b99cb10b1b3440c191 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Mon, 17 May 2021 21:27:11 +0200 4Subject: [PATCH] server/CMakeLists.txt: don't override CMAKE_EXE_LINKER_FLAGS 5 6Don't override CMAKE_EXE_LINKER_FLAGS as this could break the build if 7CMAKE_EXE_LINKER_FLAGS is already set by the user (for example to pass 8-latomic) 9 10Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 11[Upstream status: https://github.com/cutelyst/cutelyst/pull/312] 12--- 13 wsgi/CMakeLists.txt | 2 +- 14 1 file changed, 1 insertion(+), 1 deletion(-) 15 16diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt 17index ec5689f7..1ed56859 100644 18--- a/wsgi/CMakeLists.txt 19+++ b/wsgi/CMakeLists.txt 20@@ -95,7 +95,7 @@ install(TARGETS Cutelyst${PROJECT_VERSION_MAJOR}Qt${QT_VERSION_MAJOR}Server 21 cxx_generalized_initializers 22 ) 23 if (JEMALLOC_FOUND) 24- set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " -Wl,--no-as-needed") 25+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed") 26 target_link_libraries(cutelyst-wsgi2 PRIVATE ${JEMALLOC_LIBRARIES}) 27 endif() 28 29-- 302.30.2 31 32