component(developer/golang-123): Add Component
[oi-userland.git] / components / desktop / keepassxc / patches / 01-no-pie-CMakeLists.txt.patch
blobff1729f3a9c2f0cbdcadee0ed90e7a5e07c51b69
1 our gcc does not know option -pie and ld do not know --as-needed
3 --- keepassxc-2.7.3/CMakeLists.txt.orig 2022-10-23 17:56:57.000000000 +0000
4 +++ keepassxc-2.7.3/CMakeLists.txt 2022-10-23 20:28:08.538880058 +0000
5 @@ -336,10 +336,7 @@
7 if(UNIX AND NOT APPLE)
8 check_add_gcc_compiler_flag("-Qunused-arguments")
9 - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -Wl,--no-undefined")
10 - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro,-z,now -pie")
11 - set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed")
12 - set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-z,relro,-z,now")
13 + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
14 endif()
16 set(CMAKE_C_STANDARD 99)