From: Alex Bennée Date: Wed, 12 May 2021 10:20:51 +0000 (+0100) Subject: configure: use cc, not host_cc to set cross_cc for build arch X-Git-Tag: v6.1.0-rc0~113^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1aa4de12e846e0ad18969ee823c19b66d8d4d8f;p=thirdparty%2Fqemu.git configure: use cc, not host_cc to set cross_cc for build arch Otherwise you run into hilarity like trying when cross compiling a 32 bit ARM build on a 64 bit system trying to use host_cc to build 32 bit test cases. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20210512102051.12134-32-alex.bennee@linaro.org> --- diff --git a/configure b/configure index df11c8bad01..9470fff09ab 100755 --- a/configure +++ b/configure @@ -1651,7 +1651,7 @@ case "$cpu" in # No special flags required for other host CPUs esac -eval "cross_cc_${cpu}=\$host_cc" +eval "cross_cc_${cpu}=\$cc" cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" QEMU_CFLAGS="$CPU_CFLAGS $QEMU_CFLAGS"