summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2013-04-11 13:30:38 +0200
committerMichal Privoznik <mprivozn@redhat.com>2013-04-11 13:32:24 +0200
commitf15aa3d4820eae59cdf8da9f256be6b797787bf3 (patch)
treef19fdfb8a68c76021520cf99c0e211010ada1c36
parent743e82051c4e46222df190a90de2bfe3b9e71188 (diff)
Don't redefine _FORTIFY_SOURCE macro
If the _FORTIFY_SOURCE has been already defined, we unconditionally redefine it, leaving us with warning/error thrown at compilation time.
-rw-r--r--m4/virt-compile-warnings.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4
index 913abca..1c58ebe 100644
--- a/m4/virt-compile-warnings.m4
+++ b/m4/virt-compile-warnings.m4
@@ -86,7 +86,7 @@ AC_DEFUN([LIBVIRT_DESIGNER_COMPILE_WARNINGS],[
# Use improved glibc headers
AH_VERBATIM([FORTIFY_SOURCE],
[/* Enable compile-time and run-time bounds-checking, and some warnings. */
- #if defined __OPTIMIZE__ && __OPTIMIZE__
+ #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__
# define _FORTIFY_SOURCE 2
#endif
])