|
From: | Andreas Färber |
Subject: | Re: [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64 |
Date: | Thu, 26 May 2011 22:20:46 +0200 |
Am 26.05.2011 um 21:00 schrieb Stefan Berger:
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"'.
You probably meant "without passing"?Nack. Please don't hardcode -mXX in configure, it's -arch ppc vs. - arch ppc64 on my host/gcc. What's wrong with passing --extra-cflags?
Andreas
Signed-off-by: Stefan Berger <address@hidden> --- 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*)
[Prev in Thread] | Current Thread | [Next in Thread] |