Commit 7c004655 authored by vijaysm's avatar vijaysm
Browse files

Add -fstack-protector-all flag to both LDFLAGS and FCFLAGS/FFLAGS in debug mode

parent 68e6ba42
......@@ -219,11 +219,16 @@ if test "xyes" = "x$enable_debug"; then
# Add -fstack-protector-all option for g++ in debug mode
if test "x$GXX" = "xyes"; then
CXXFLAGS="$CXXFLAGS -fstack-protector-all"
LDFLAGS="$LDFLAGS -fstack-protector-all"
fi
# Add -fstack-protector-all option for gcc in debug mode
if test "x$GXX" = "xyes"; then
CFLAGS="$CFLAGS -fstack-protector-all"
fi
if (test "x$CHECK_FC" != "xno"); then
FCFLAGS="$FCFLAGS -fstack-protector-all"
FFLAGS="$FFLAGS -fstack-protector-all"
fi
DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-debug=yes"
else
DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-debug=no"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment