diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2021-05-12 11:20:51 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2021-05-18 09:36:21 +0100 |
commit | b1aa4de12e846e0ad18969ee823c19b66d8d4d8f (patch) | |
tree | 51343fade76c4fc41539247ab82d9c690228a291 /configure | |
parent | cf22f936f29bc1ee8fff5fbc16064208571a448c (diff) | |
download | qemu-b1aa4de12e846e0ad18969ee823c19b66d8d4d8f.zip qemu-b1aa4de12e846e0ad18969ee823c19b66d8d4d8f.tar.gz qemu-b1aa4de12e846e0ad18969ee823c19b66d8d4d8f.tar.bz2 |
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é <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210512102051.12134-32-alex.bennee@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |