summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-06 12:01:46 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-06 12:01:46 +0100
commit143b3bb8a919ccdb2b76832fe64fde8ef4744cf2 (patch)
tree3d8566cee811a902bf967a5dd1f11bf2cd92093b
parent07531d34eb3ebe29e968d6d75cfbe9a4257f851a (diff)
Undefine _FORTIFY_SOURCE before defining (fix for gcc 4.7).
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 01c69b4..e115d4f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,7 @@ AC_ARG_WITH(debug,
if test x$with_debug == xyes; then
AC_MSG_WARN([*** Building with debug support!])
AC_DEFINE_UNQUOTED(WITH_DEBUG, , [The project is configured to use debug output])
- CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Werror -g -O0"
+ CXXFLAGS="$CXXFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Werror -g -O0"
fi
dnl ======================