* [PATCH] Stop requiring GCC3 for QEMU
@ 2008-06-05 20:58 Anthony Liguori
2008-06-09 15:57 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Anthony Liguori @ 2008-06-05 20:58 UTC (permalink / raw)
To: kvm; +Cc: Avi Kivity, Anthony Liguori
KVM always configures QEMU to only build the required targets. Recently,
target-i386 converted to TCG completely which means it no longer needs GCC-3.
ia64 and PowerPC have never needed GCC-3 AFAIK so let's disable the gcc check
in QEMU's configure and build with GCC4.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/configure b/configure
index 218b414..902e769 100755
--- a/configure
+++ b/configure
@@ -6,7 +6,6 @@ cc=gcc
ld=ld
objcopy=objcopy
want_module=1
-qemu_cc=
qemu_cflags=
qemu_ldflags=
qemu_opts=
@@ -24,7 +23,6 @@ usage() {
--prefix=PREFIX where to install things ($prefix)
--with-patched-kernel don't use external module
--kerneldir=DIR kernel build directory ($kerneldir)
- --qemu-cc=CC specify compiler for qemu (must be gcc-3.x)
--qemu-cflags=CFLAGS CFLAGS to add to qemu configuration
--qemu-ldflags=LDFLAGS LDFLAGS to add to qemu configuration
@@ -58,9 +56,6 @@ while [[ "$1" = -* ]]; do
--with-patched-kernel)
want_module=
;;
- --qemu-cc)
- qemu_cc="$arg"
- ;;
--qemu-cflags)
qemu_cflags="$arg"
;;
@@ -115,11 +110,11 @@ fi
#configure qemu
(cd qemu; ./configure --target-list=$target_exec \
--disable-kqemu \
+ --disable-gcc-check \
--extra-cflags="-I $PWD/../libkvm $qemu_cflags" \
--extra-ldflags="-L $PWD/../libkvm $qemu_ldflags" \
--kernel-path="$libkvm_kerneldir" \
--prefix="$prefix" \
- ${qemu_cc:+"--cc=$qemu_cc"} \
${cross_prefix:+"--cross-prefix=$cross_prefix"} \
${cross_prefix:+"--cpu=$arch"} $qemu_opts
) || usage
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Stop requiring GCC3 for QEMU
2008-06-05 20:58 [PATCH] Stop requiring GCC3 for QEMU Anthony Liguori
@ 2008-06-09 15:57 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-06-09 15:57 UTC (permalink / raw)
To: Anthony Liguori; +Cc: kvm
Anthony Liguori wrote:
> KVM always configures QEMU to only build the required targets. Recently,
> target-i386 converted to TCG completely which means it no longer needs GCC-3.
> ia64 and PowerPC have never needed GCC-3 AFAIK so let's disable the gcc check
> in QEMU's configure and build with GCC4.
>
Applied, thanks. This wasn't entirely unexpected.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-09 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 20:58 [PATCH] Stop requiring GCC3 for QEMU Anthony Liguori
2008-06-09 15:57 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox