qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] qemu/configure: fix CFLAGS handling for i386
@ 2012-04-03 17:32 Olaf Hering
  2012-04-04 15:16 ` [Qemu-devel] [Xen-devel] " Ian Jackson
  0 siblings, 1 reply; 5+ messages in thread
From: Olaf Hering @ 2012-04-03 17:32 UTC (permalink / raw)
  To: qemu-devel, xen-devel


configure will generate incorrect CFLAGS which will lead to compile
errors due to unknown gcc options, iff CFLAGS was already in the
environment during configure invocation.

Add a space before the -march=i486 gcc option.
Remove += operator usage because configure is not a bash script.

This patch is against the qemu-xen tree, but it should apply also to
qemu.git since it has the same issue. Please apply to both trees.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: qemu-xen-dir-remote/configure
===================================================================
--- qemu-xen-dir-remote.orig/configure
+++ qemu-xen-dir-remote/configure
@@ -2637,7 +2637,7 @@ int main(int argc, char **argv)
 }
 EOF
   if ! compile_prog "" "" ; then
-    CFLAGS+="-march=i486"
+    CFLAGS="$CFLAGS -march=i486"
   fi
 fi
 

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

end of thread, other threads:[~2012-04-05  7:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 17:32 [Qemu-devel] [PATCH v2] qemu/configure: fix CFLAGS handling for i386 Olaf Hering
2012-04-04 15:16 ` [Qemu-devel] [Xen-devel] " Ian Jackson
2012-04-04 15:40   ` Peter Maydell
2012-04-04 16:09     ` Peter Maydell
2012-04-05  7:28       ` Andreas Färber

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).