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
6 message("Document root: ${DOC_ROOT}")
8 -#set debug define for source
9 -if(CMAKE_BUILD_TYPE MATCHES RELEASE)
16 #required dependencies
17 find_package(Threads REQUIRED)
18 find_package(PCRE2 REQUIRED)
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")
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")