* [Qemu-trivial] [PATCH] configure: Undef _FORTIFY_SOURCE before redefining it
@ 2013-09-04 1:56 Ján Veselý
2013-09-12 18:50 ` Michael Tokarev
0 siblings, 1 reply; 2+ messages in thread
From: Ján Veselý @ 2013-09-04 1:56 UTC (permalink / raw)
To: QEMU
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 <jano.vesely@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-trivial] [PATCH] configure: Undef _FORTIFY_SOURCE before redefining it
2013-09-04 1:56 [Qemu-trivial] [PATCH] configure: Undef _FORTIFY_SOURCE before redefining it Ján Veselý
@ 2013-09-12 18:50 ` Michael Tokarev
0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2013-09-12 18:50 UTC (permalink / raw)
To: Ján Veselý; +Cc: QEMU
04.09.2013 05:56, Ján Veselý wrote:
> 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
Thanks, applied to the trivial-patches queue (combined with the
similar patch by Michal Privoznik).
/mjt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-12 18:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 1:56 [Qemu-trivial] [PATCH] configure: Undef _FORTIFY_SOURCE before redefining it Ján Veselý
2013-09-12 18:50 ` Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.