kinit/fpie.patch

17 lines
643 B
Diff
Raw Normal View History

diff --git a/src/start_kdeinit/CMakeLists.txt b/src/start_kdeinit/CMakeLists.txt
index 56a91e3..1af14de 100644
--- a/src/start_kdeinit/CMakeLists.txt
+++ b/src/start_kdeinit/CMakeLists.txt
@@ -2,6 +2,11 @@ add_executable(start_kdeinit start_kdeinit.c)
if (Libcap_FOUND)
target_link_libraries(start_kdeinit ${Libcap_LIBRARIES})
endif()
+
+set_property(TARGET start_kdeinit APPEND_STRING PROPERTY COMPILE_FLAGS " -fPIE")
+
+set_property(TARGET start_kdeinit APPEND_STRING PROPERTY LINK_FLAGS " -pie")
+
add_executable(start_kdeinit_wrapper start_kdeinit_wrapper.c)
install(TARGETS start_kdeinit DESTINATION ${KF5_LIBEXEC_INSTALL_DIR})