mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-18 03:00:50 -04:00
undefine FORTIFY_SOURCE before trying to define it. In case it's already defined by the distro
This commit is contained in:
parent
ffddcb5060
commit
506057d202
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ endif()
|
||||||
|
|
||||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
|
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
|
||||||
if (CMAKE_BUILD_TYPE_LOWER MATCHES "(release|relwithdebinfo|minsizerel)")
|
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()
|
endif()
|
||||||
|
|
||||||
check_c_compiler_flag("-Werror=format-security -Werror=implicit-function-declaration" WERROR_C_AVAILABLE)
|
check_c_compiler_flag("-Werror=format-security -Werror=implicit-function-declaration" WERROR_C_AVAILABLE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue