]> git.proxmox.com Git - qemu.git/commitdiff
Use correct cflags for kvm-kmod when cross compiling
authorStefan Weil <weil@mail.berlios.de>
Sun, 11 Apr 2010 17:01:01 +0000 (19:01 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 13 Apr 2010 22:23:48 +0000 (00:23 +0200)
Using $pkgconfig instead of pkg-config will use
${cross_prefix}pkg-config if that is available.

This fix is needed for cross compilations without
modified PATH. Without the fix, PATH must be modified
to find the cross pkg-config before the native
pkg-config.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure

index 966cd7d29d874a1ea31f6795e655378dacc9d25d..7c0671953978e45babfbb4008db2b8ee7ba23226 100755 (executable)
--- a/configure
+++ b/configure
@@ -1488,7 +1488,7 @@ EOF
             kvm_cflags="$kvm_cflags -I$kerneldir/arch/$cpu/include"
       fi
   else
-    kvm_cflags=`pkg-config --cflags kvm-kmod 2> /dev/null`
+    kvm_cflags=`$pkgconfig --cflags kvm-kmod 2>/dev/null`
   fi
   if compile_prog "$kvm_cflags" "" ; then
     kvm=yes