summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:10:47 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:10:47 +0100
commitb95dd54ca22f13cec39057ba39d41efb7a216e5a (patch)
treebf4e03271c04b534c22e3b5774f3be83ca6e6e17
parent71f416eccc2dc530222b8343fb1f1d027dccd8be (diff)
Define _FORTIFY_SOURCE during compilation to enable more source code warnings
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0a3f1f8..e866142 100644
--- a/configure.ac
+++ b/configure.ac
@@ -647,6 +647,10 @@ do
done
unset option
+#if defined __GNUC__ && !defined _FORTIFY_SOURCE
+AC_DEFINE([_FORTIFY_SOURCE], 2, [enable compile-time and run-time bounds-checking, and some warnings])
+#endif
+
case "$target" in
*hpux*)
;;