upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / mympd / repos / community-x86_64 / mympd-10.0.3-full_relro.patch
blob0c3a03a499fdc45fa164f2382bab5729b14a768e
1 diff -ruN a/CMakeLists.txt b/CMakeLists.txt
2 --- a/CMakeLists.txt 2022-10-13 20:54:07.000000000 +0200
3 +++ b/CMakeLists.txt 2022-10-29 16:40:01.350463440 +0200
4 @@ -82,14 +82,6 @@
5 endif()
6 message("Document root: ${DOC_ROOT}")
8 -#set debug define for source
9 -if(CMAKE_BUILD_TYPE MATCHES RELEASE)
10 - set(DEBUG "OFF")
11 - set(NDEBUG "true")
12 -else()
13 - set(DEBUG "ON")
14 -endif()
16 #required dependencies
17 find_package(Threads REQUIRED)
18 find_package(PCRE2 REQUIRED)
19 @@ -268,8 +260,7 @@
20 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -fPIE")
21 set (CMAKE_EXE_LINKER_FLAGS "-Wl,-z,relro,-z,now,--gc-sections -pie -s")
22 else()
23 - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -Og")
24 - set (CMAKE_EXE_LINKER_FLAGS "")
25 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE")
26 endif()
28 #set source files