summaryrefslogtreecommitdiffstats
path: root/common/gcc_stack_protect.m4
diff options
context:
space:
mode:
Diffstat (limited to 'common/gcc_stack_protect.m4')
-rw-r--r--common/gcc_stack_protect.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/common/gcc_stack_protect.m4 b/common/gcc_stack_protect.m4
index 13c5e0a..2246849 100644
--- a/common/gcc_stack_protect.m4
+++ b/common/gcc_stack_protect.m4
@@ -57,7 +57,7 @@ AC_DEFUN([GCC_STACK_PROTECT_CC],[
AC_CACHE_CHECK([whether ${CC} accepts -fstack-protector],
ssp_cv_cc,
[ssp_old_cflags="$CFLAGS"
- CFLAGS="$CFLAGS -fstack-protector"
+ CFLAGS="$CFLAGS -fstack-protector -Werror"
AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no)
CFLAGS="$ssp_old_cflags"
])
@@ -74,7 +74,7 @@ AC_DEFUN([GCC_STACK_PROTECT_CXX],[
AC_CACHE_CHECK([whether ${CXX} accepts -fstack-protector],
ssp_cv_cxx,
[ssp_old_cxxflags="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS -fstack-protector"
+ CXXFLAGS="$CXXFLAGS -fstack-protector -Werror"
AC_TRY_COMPILE(,, ssp_cv_cxx=yes, ssp_cv_cxx=no)
CXXFLAGS="$ssp_old_cxxflags"
])