Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O10X1-000379-3U for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:11 -0400 Received: from [140.186.70.92] (port=34083 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O10Wz-000351-11 for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O10Wx-0006hG-89 for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:08 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:60502) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O10Ww-0006gw-RX for qemu-devel@nongnu.org; Sun, 11 Apr 2010 13:01:07 -0400 From: Stefan Weil Date: Sun, 11 Apr 2010 19:01:01 +0200 Message-Id: <1271005261-27844-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] Use correct cflags for kvm-kmod when cross compiling List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers 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 --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 47fca4f..1f02d65 100755 --- a/configure +++ b/configure @@ -1498,7 +1498,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 -- 1.7.0