summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-06-26 07:50:37 +0200
committerGuido Günther <agx@sigxcpu.org>2012-06-26 07:50:37 +0200
commit9deae39bc818603d8cfe8dd4061159f8b2985bd4 (patch)
tree6e03b68f73c985cc8579e1915c206519011fd9b7 /m4
parent75e280b07f9fd9ae55514c65b1f1147276668c5e (diff)
New upstream version 0.9.13~rc1
Diffstat (limited to 'm4')
-rw-r--r--m4/virt-compile-warnings.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4
index 5527bff50..18170474d 100644
--- a/m4/virt-compile-warnings.m4
+++ b/m4/virt-compile-warnings.m4
@@ -102,8 +102,13 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
# Silence certain warnings in gnulib, and use improved glibc headers
AC_DEFINE([lint], [1],
[Define to 1 if the compiler is checking for lint.])
- AC_DEFINE([_FORTIFY_SOURCE], [2],
- [enable compile-time and run-time bounds-checking, and some warnings])
+ AH_VERBATIM([FORTIFY_SOURCE],
+ [/* Enable compile-time and run-time bounds-checking, and some warnings,
+ without upsetting newer glibc. */
+ #if defined __OPTIMIZE__ && __OPTIMIZE__
+ # define _FORTIFY_SOURCE 2
+ #endif
+ ])
# Extra special flags
dnl -fstack-protector stuff passes gl_WARN_ADD with gcc