[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] configure: Undef _FORTIFY_SOURCE before redefinin
From: |
Ján Veselý |
Subject: |
[Qemu-trivial] [PATCH] configure: Undef _FORTIFY_SOURCE before redefining it |
Date: |
Tue, 3 Sep 2013 21:56:31 -0400 |
This patch fixes the following warning/error with compilers that
define _FORTIFY_SOURE by default:
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
stubs/dump.c:1:0: note: this is the location of the previous definition
Signed-off-by: Jan Vesely <address@hidden>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index e989609..24e5b00 100755
--- a/configure
+++ b/configure
@@ -3419,7 +3419,7 @@ if test "$gcov" = "yes" ; then
CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS"
LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS"
elif test "$debug" = "no" ; then
- CFLAGS="-O2 -D_FORTIFY_SOURCE=2 $CFLAGS"
+ CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
fi
--
1.8.1.5
- [Qemu-trivial] [PATCH] configure: Undef _FORTIFY_SOURCE before redefining it,
Ján Veselý <=