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 <[EMAIL PROTECTED]>

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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to