Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthez3ro <io@thezero.org>2018-01-03 22:18:45 +0300
committerthez3ro <io@thezero.org>2018-01-03 22:19:23 +0300
commit506057d20283ee69de4219bffea26d2609cd6809 (patch)
tree6e64280695b0d89bdb74a04f01a1266b992f5767 /CMakeLists.txt
parentffddcb5060cead637345947cc23b8b9b0f0ab6bf (diff)
undefine FORTIFY_SOURCE before trying to define it. In case it's already defined by the distro
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a92f018f5..77f4d8624 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -129,7 +129,7 @@ endif()
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
if (CMAKE_BUILD_TYPE_LOWER MATCHES "(release|relwithdebinfo|minsizerel)")
- add_gcc_compiler_flags("-D_FORTIFY_SOURCE=2")
+ add_gcc_compiler_flags("-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2")
endif()
check_c_compiler_flag("-Werror=format-security -Werror=implicit-function-declaration" WERROR_C_AVAILABLE)