qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64
@ 2011-05-26 19:00 Stefan Berger
  2011-05-26 19:14 ` malc
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Stefan Berger @ 2011-05-26 19:00 UTC (permalink / raw)
  To: agraf, qemu-devel

With the below patch I can build either ppc (-m32) or ppc64 (-m64) 
versions of Qemu (on a ppc64 host) when passing these compiler flags via 
'configure ... --extra-cflags="-m32"'.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>

---
  configure |    9 ++++++++-
  1 file changed, 8 insertions(+), 1 deletion(-)

Index: qemu-git/configure
===================================================================
--- qemu-git.orig/configure
+++ qemu-git/configure
@@ -807,7 +807,14 @@ case "$cpu" in
      arm*)
             host_guest_base="yes"
             ;;
-    ppc*)
+    ppc)
+           QEMU_CFLAGS="-m32 $QEMU_CFLAGS"
+           LDFLAGS="-m32 $LDFLAGS"
+           host_guest_base="yes"
+           ;;
+    ppc64)
+           QEMU_CFLAGS="-m64 $QEMU_CFLAGS"
+           LDFLAGS="-m64 $LDFLAGS"
             host_guest_base="yes"
             ;;
      mips*)

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

end of thread, other threads:[~2011-05-29 22:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-26 19:00 [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64 Stefan Berger
2011-05-26 19:14 ` malc
2011-05-26 19:27   ` Stefan Berger
2011-05-26 20:20 ` Andreas Färber
2011-05-26 20:31   ` Stefan Berger
2011-05-26 20:42     ` malc
2011-05-26 21:24     ` Andreas Färber
2011-05-26 22:25       ` Stefan Berger
2011-05-29 21:09         ` Andreas Färber
2011-05-29 22:07           ` Stefan Berger
2011-05-27  7:12 ` Paolo Bonzini

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