qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] configure: Undefine _FORTIFY_SOURCE prior using it
@ 2013-01-31 10:15 Michal Privoznik
  2013-02-01  9:54 ` [Qemu-trivial] [Qemu-devel] " Andreas Färber
  0 siblings, 1 reply; 8+ messages in thread
From: Michal Privoznik @ 2013-01-31 10:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Currently, we are enforcing the _FORTIFY_SOURCE=2 without any
previous detection if the macro has been already defined, e.g.
by environment, or is just enabled by compiler by default.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index b7635e4..97070eb 100755
--- a/configure
+++ b/configure
@@ -3159,7 +3159,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.0.2



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-04-24 10:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-31 10:15 [Qemu-trivial] [PATCH] configure: Undefine _FORTIFY_SOURCE prior using it Michal Privoznik
2013-02-01  9:54 ` [Qemu-trivial] [Qemu-devel] " Andreas Färber
2013-02-01 15:18   ` Michal Privoznik
2013-02-06 14:49     ` Stefan Hajnoczi
2013-02-06 15:09       ` Paolo Bonzini
2013-04-23 17:18         ` Michal Privoznik
2013-04-24 10:00           ` Markus Armbruster
2013-02-06 17:05       ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).