Merge pull request #873 from alex-lt-kong/ak_issue872

comment out fcf-protection
This commit is contained in:
Leonid Stryzhevskyi 2023-10-15 00:23:01 +03:00 committed by GitHub
commit b85a565351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,10 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
add_compiler_flags(4.6 "-fstack-clash-protection") add_compiler_flags(4.6 "-fstack-clash-protection")
add_compiler_flags(4.6 "-fstack-protector-strong") add_compiler_flags(4.6 "-fstack-protector-strong")
add_compiler_flags(4.6 "-grecord-gcc-switches") add_compiler_flags(4.6 "-grecord-gcc-switches")
add_compiler_flags(4.6 "-fcf-protection") # Issue 872: https://github.com/oatpp/oatpp/issues/872
# -fcf-protection is supported only 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 "-pipe")
add_compiler_flags(4.6 "-Werror=format-security") add_compiler_flags(4.6 "-Werror=format-security")
add_compiler_flags(4.6 "-Wno-format-nonliteral") add_compiler_flags(4.6 "-Wno-format-nonliteral")