aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-11-07 11:09:52 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-11-14 12:59:04 +0100
commit42da6041d5e30fcf49ba639477a05e781594a7a5 (patch)
tree937484ffc776394435eb8859d0dd4d0b58de3d86 /configure
parent5ca9388a4d22a68439a04b0735c34bdcac553e48 (diff)
downloadqemu-42da6041d5e30fcf49ba639477a05e781594a7a5.zip
qemu-42da6041d5e30fcf49ba639477a05e781594a7a5.tar.gz
qemu-42da6041d5e30fcf49ba639477a05e781594a7a5.tar.bz2
pixman: set --host for cross builds
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 <kraxel@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
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