Commit ce93976b authored by Fathom's avatar Fathom Committed by vijaysm
Browse files

Fixing a bug due to the assumption that GXX=no is valid. Only GXX=yes is valid...

Fixing a bug due to the assumption that GXX=no is valid. Only GXX=yes is valid and alternately, it can be blank
parent a92120b0
......@@ -217,17 +217,14 @@ if test "xyes" = "x$enable_debug"; then
FFLAGS="$FFLAGS -g"
fi
# Add -fstack-protector-all option for g++ in debug mode
if (test "x$GXX" = "xno"); then
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" != "xno"); then
CFLAGS="$CFLAGS -fstack-protector-all"
fi
if (test "x$CHECK_FC" != "xno"); then
FCFLAGS="$FCFLAGS -fstack-protector-all"
FFLAGS="$FFLAGS -fstack-protector-all"
LDFLAGS="$LDFLAGS -fstack-protector-all"
if (test "x$CHECK_FC" != "xno"); then
FCFLAGS="$FCFLAGS -fstack-protector-all"
FFLAGS="$FFLAGS -fstack-protector-all"
fi
fi
DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-debug=yes"
else
......
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