File tree Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Original file line number Diff line number Diff line change @@ -785,6 +785,7 @@ if test x$use_hardening != xno; then
785
785
AX_CHECK_COMPILE_FLAG ( [ -Wstack-protector] ,[ HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"] )
786
786
AX_CHECK_COMPILE_FLAG ( [ -fstack-protector-all] ,[ HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-protector-all"] )
787
787
788
+ AX_CHECK_COMPILE_FLAG ( [ -fcf-protection=full] ,[ HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"] )
788
789
dnl When enable_debug is yes, all optimizations are disabled.
789
790
dnl However, FORTIFY_SOURCE requires that there is some level of optimization, otherwise it does nothing and just creates a compiler warning.
790
791
dnl Since FORTIFY_SOURCE is a no-op without optimizations, do not enable it when enable_debug is yes.
You can’t perform that action at this time.
0 commit comments