From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYccB-0003GD-TD for qemu-devel@nongnu.org; Wed, 14 Nov 2012 08:02:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYcc8-00083w-Qp for qemu-devel@nongnu.org; Wed, 14 Nov 2012 08:02:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYcc8-00083I-IT for qemu-devel@nongnu.org; Wed, 14 Nov 2012 08:02:44 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qAED2hmL024831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 14 Nov 2012 08:02:43 -0500 From: Gerd Hoffmann Date: Wed, 14 Nov 2012 14:02:36 +0100 Message-Id: <1352898161-28960-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1352898161-28960-1-git-send-email-kraxel@redhat.com> References: <1352898161-28960-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/7] pixman: set --host for cross builds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Set --host when calling pixman configure while doing cross builds so pixman's autoconf picks up the cross build tools correctly. Signed-off-by: Gerd Hoffmann --- Makefile | 2 +- configure | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index ca14a21..ff2c16d 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,7 @@ subdir-pixman: pixman/Makefile $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pixman V="$(V)" all,) pixman/Makefile: $(SRC_PATH)/pixman/configure - (cd pixman; $(SRC_PATH)/pixman/configure --disable-shared --enable-static) + (cd pixman; $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-shared --enable-static) $(SRC_PATH)/pixman/configure: (cd $(SRC_PATH)/pixman; autoreconf -v --install) diff --git a/configure b/configure index e6fe4f8..0a241eb 100755 --- a/configure +++ b/configure @@ -3649,6 +3649,11 @@ if test "$sparse" = "yes" ; then echo "HOST_CC := REAL_CC=\"\$(HOST_CC)\" cgcc" >> $config_host_mak echo "QEMU_CFLAGS += -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-non-pointer-null" >> $config_host_mak fi +if test "$cross_prefix" != ""; then + echo "AUTOCONF_HOST := --host=${cross_prefix%-}" >> $config_host_mak +else + echo "AUTOCONF_HOST := " >> $config_host_mak +fi echo "LDFLAGS=$LDFLAGS" >> $config_host_mak echo "ARLIBS_BEGIN=$arlibs_begin" >> $config_host_mak echo "ARLIBS_END=$arlibs_end" >> $config_host_mak -- 1.7.1