File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -638,6 +638,10 @@ if test x$TARGET_OS != xwindows; then
638638 AX_CHECK_COMPILE_FLAG ( [ -fPIC] ,[ PIC_FLAGS="-fPIC"] )
639639fi
640640
641+ # All versions of gcc that we commonly use for building are subject to bug
642+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90348. To work around that, set
643+ # -fstack-reuse=none for all gcc builds. (Only gcc understands this flag)
644+ AX_CHECK_COMPILE_FLAG ( [ -fstack-reuse=none] ,[ HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-reuse=none"] )
641645if test x$use_hardening != xno; then
642646 AX_CHECK_COMPILE_FLAG ( [ -Wstack-protector] ,[ HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"] )
643647 AX_CHECK_COMPILE_FLAG ( [ -fstack-protector-all] ,[ HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-protector-all"] )
You can’t perform that action at this time.
0 commit comments