[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC for 2.8 2/3] configure: filter 64 bit machines on 32 b
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [RFC for 2.8 2/3] configure: filter 64 bit machines on 32 bit builds |
Date: |
Tue, 9 Aug 2016 16:55:26 +0100 |
If the user doesn't specify any targets we build a default_target_list
from the target .mak fragements. If we don't filter out the 64 bit
targets when building on 32 bit machines we'll error out later on.
Signed-off-by: Alex Bennée <address@hidden>
---
configure | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 7b779c1..5499dbc 100755
--- a/configure
+++ b/configure
@@ -1252,7 +1252,21 @@ if [ "$bsd_user" = "yes" ]; then
fi
for config in $mak_wilds; do
- default_target_list="${default_target_list} $(basename "$config" .mak)"
+
+ target=$(basename "$config" .mak)
+
+ if test "$cpu_width" = "32"; then
+ case $target in
+ *64*|s390x-*)
+ # skip 64 bit machines
+ ;;
+ *)
+ default_target_list="${default_target_list} ${target}"
+ ;;
+ esac
+ else
+ default_target_list="${default_target_list} ${target}"
+ fi
done
if test x"$show_help" = x"yes" ; then
--
2.7.4