We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
HARDENING
1 parent d5752a1 commit c54f9e1Copy full SHA for c54f9e1
CMakeLists.txt
@@ -316,7 +316,10 @@ if(HARDENING)
316
)
317
318
try_append_cxx_flags("-Wstack-protector" TARGET hardening_interface)
319
+ # The -fstack-protector-all option might impact the linking stage as well.
320
+ # Hence, it should be applied to both the compilation and linking stages.
321
try_append_cxx_flags("-fstack-protector-all" TARGET hardening_interface)
322
+ try_append_linker_flag("-fstack-protector-all" TARGET hardening_interface)
323
try_append_cxx_flags("-fcf-protection=full" TARGET hardening_interface)
324
325
if(MINGW)
0 commit comments