Blame SOURCES/core-setup-hardening-flags.patch

74755f
diff --git a/src/settings.cmake b/src/settings.cmake
74755f
--- a/src/settings.cmake
74755f
+++ b/src/settings.cmake
74755f
@@ -218,6 +218,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
74755f
     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Xlinker -Bsymbolic -Bsymbolic-functions")
74755f
     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--build-id=sha1")
74755f
     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--build-id=sha1")
74755f
+    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
74755f
     add_compile_options(-fstack-protector-strong)
74755f
 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
74755f
     add_compile_options(-fstack-protector)