We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c1aa5 commit faf38bcCopy full SHA for faf38bc
configure.ac
@@ -734,6 +734,10 @@ if test x$TARGET_OS != xwindows; then
734
AX_CHECK_COMPILE_FLAG([-fPIC],[PIC_FLAGS="-fPIC"])
735
fi
736
737
+# All versions of gcc that we commonly use for building are subject to bug
738
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90348. To work around that, set
739
+# -fstack-reuse=none for all gcc builds. (Only gcc understands this flag)
740
+AX_CHECK_COMPILE_FLAG([-fstack-reuse=none],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-reuse=none"])
741
if test x$use_hardening != xno; then
742
use_hardening=yes
743
AX_CHECK_COMPILE_FLAG([-Wstack-protector],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"])
0 commit comments