kdesu/fpie.patch

19 lines
658 B
Diff
Raw Normal View History

Index: kdesu-5.36.0/src/kdesud/CMakeLists.txt
===================================================================
--- kdesu-5.36.0.orig/src/kdesud/CMakeLists.txt
+++ kdesu-5.36.0/src/kdesud/CMakeLists.txt
@@ -20,10 +20,9 @@ if(HAVE_X11)
target_include_directories(kdesud PRIVATE ${X11_X11_INCLUDE_PATH})
endif()
-if(KDE4_ENABLE_FPIE)
- macro_add_compile_flags(kdesud ${KDE4_CXX_FPIE_FLAGS})
- macro_add_link_flags(kdesud ${KDE4_PIE_LDFLAGS})
-endif()
+set_property(TARGET kdesud APPEND_STRING PROPERTY COMPILE_FLAGS " -fPIE")
+
+set_property(TARGET kdesud APPEND_STRING PROPERTY LINK_FLAGS " -pie")
########### install files ###############