summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJoelle van Dyne2021-01-26 02:24:54 +0100
committerPeter Maydell2021-01-29 11:47:28 +0100
commitf6bca9dff5c9ae3a5afc4678866080ccd5120318 (patch)
treec346bf6cc54a4f4e479582611064f10805fe2249 /configure
parentdarwin: fix cross-compiling for Darwin (diff)
downloadqemu-f6bca9dff5c9ae3a5afc4678866080ccd5120318.tar.gz
qemu-f6bca9dff5c9ae3a5afc4678866080ccd5120318.tar.xz
qemu-f6bca9dff5c9ae3a5afc4678866080ccd5120318.zip
configure: cross compile should use x86_64 cpu_family
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Joelle van Dyne <j@getutm.app> Message-id: 20210126012457.39046-9-j@getutm.app Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index e520a43406..5cf075ac60 100755
--- a/configure
+++ b/configure
@@ -6305,9 +6305,12 @@ if test "$cross_compile" = "yes"; then
echo "system = 'darwin'" >> $cross
fi
case "$ARCH" in
- i386|x86_64)
+ i386)
echo "cpu_family = 'x86'" >> $cross
;;
+ x86_64)
+ echo "cpu_family = 'x86_64'" >> $cross
+ ;;
ppc64le)
echo "cpu_family = 'ppc64'" >> $cross
;;