kdesu/fpie.patch

19 lines
803 B
Diff

Index: kdesu-5.56.0git.20201120T123159~af8457b/src/kdesud/CMakeLists.txt
===================================================================
--- kdesu-5.56.0git.20201120T123159~af8457b.orig/src/kdesud/CMakeLists.txt 2020-11-20 13:31:59.000000000 +0100
+++ kdesu-5.56.0git.20201120T123159~af8457b/src/kdesud/CMakeLists.txt 2020-11-24 10:55:40.734205978 +0100
@@ -28,10 +28,9 @@
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")
if(BUILD_TESTING)
add_subdirectory(autotests)