From c36ba24349f2aff67ac8fa04c7b7184e0bdd9e95 Mon Sep 17 00:00:00 2001 From: Alf Henrik Sauge Date: Fri, 15 May 2026 13:34:19 +0200 Subject: [PATCH] Append CMAKE_EXE_LINKER_FLAGS instead of overwriting it This is necessary to pass -pie during compilation --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5eb49ce0..c242962ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,7 @@ if(HAIKU) # qsort_r in libgit2 requires this set(CMAKE_EXE_LINKER_FLAGS -lgnu) elseif(UNIX AND NOT APPLE) - set(CMAKE_EXE_LINKER_FLAGS -ldl) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ldl") endif() # Find Qt modules.