comment out fcf-protection

This commit is contained in:
Alex Kong 2023-10-14 17:13:12 +08:00
parent 3d0081ab34
commit dec7490f79

View File

@ -255,6 +255,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
# Issue 872: https://github.com/oatpp/oatpp/issues/872
# -fcf-protection is supported on x86 GNU/Linux per this gcc doc:
# https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fcf-protection
# add_compiler_flags(4.6 "-fcf-protection")
add_compiler_flags(4.6 "-pipe")
add_compiler_flags(4.6 "-Werror=format-security")
add_compiler_flags(4.6 "-Wno-format-nonliteral")