[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 29/29] configure: use cc, not host_cc to set cross_cc for build
From: |
Alex Bennée |
Subject: |
[PULL v2 29/29] configure: use cc, not host_cc to set cross_cc for build arch |
Date: |
Tue, 18 May 2021 10:07:20 +0100 |
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é <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210512102051.12134-32-alex.bennee@linaro.org>
diff --git a/configure b/configure
index df11c8bad0..9470fff09a 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"
--
2.20.1
- [PULL v2 16/29] tests/tcg/tricore: Add bmerge test, (continued)
- [PULL v2 16/29] tests/tcg/tricore: Add bmerge test, Alex Bennée, 2021/05/18
- [PULL v2 15/29] tests/tcg/tricore: Add macros to create tests and first test 'abs', Alex Bennée, 2021/05/18
- [PULL v2 19/29] tests/tcg/tricore: Add fadd test, Alex Bennée, 2021/05/18
- [PULL v2 26/29] tests/tcg/ppc64le: tests for brh/brw/brd, Alex Bennée, 2021/05/18
- [PULL v2 28/29] tests/tcg: don't allow clang as a cross compiler, Alex Bennée, 2021/05/18
- [PULL v2 25/29] tests/docker: gcc-10 based images for ppc64{, le} tests, Alex Bennée, 2021/05/18
- [PULL v2 18/29] tests/tcg/tricore: Add dvstep test, Alex Bennée, 2021/05/18
- [PULL v2 24/29] tests/tcg/tricore: Add muls test, Alex Bennée, 2021/05/18
- [PULL v2 27/29] tests/tcg: fix missing return, Alex Bennée, 2021/05/18
- [PULL v2 23/29] tests/tcg/tricore: Add msub test, Alex Bennée, 2021/05/18
- [PULL v2 29/29] configure: use cc, not host_cc to set cross_cc for build arch,
Alex Bennée <=
- [PULL v2 14/29] configure: Emit HOST_CC to config-host.mak, Alex Bennée, 2021/05/18
- [PULL v2 20/29] tests/tcg/tricore: Add fmul test, Alex Bennée, 2021/05/18
- [PULL v2 22/29] tests/tcg/tricore: Add madd test, Alex Bennée, 2021/05/18
- [PULL v2 17/29] tests/tcg/tricore: Add clz test, Alex Bennée, 2021/05/18
- [PULL v2 21/29] tests/tcg/tricore: Add ftoi test, Alex Bennée, 2021/05/18
- Re: [PULL v2 00/29] testing and plugin updates, no-reply, 2021/05/18
- Re: [PULL v2 00/29] testing and plugin updates, Peter Maydell, 2021/05/19
- Re: [PULL v2 00/29] testing and plugin updates, Peter Maydell, 2021/05/20