summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-02-08 22:10:11 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-02-08 22:10:11 +0000
commitedd14f40ab3ccc585a6259dd990a07294596ca45 (patch)
tree5e983a50cd6f7c2675ed22ad44500b2d93747f86
parent1aa242105af219082ccb0ceefc0e460d9d59ea6c (diff)
downloadqemu-openbios-edd14f40ab3ccc585a6259dd990a07294596ca45.tar.gz
config/scripts/switch-arch: allow x86_64 prefix for x86 builds
Modern 64-bit compilers with a gcc multilib-capable toolchain are easily able to build x86 OpenBIOS. If the build is not gcc multilib-capable then the build typically fails with the message "fatal error: sys/cdefs.h: No such file or directory". Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rwxr-xr-xconfig/scripts/switch-arch2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch
index 7ed1369d..b5acc6c3 100755
--- a/config/scripts/switch-arch
+++ b/config/scripts/switch-arch
@@ -295,7 +295,7 @@ for ARCH in $arch_list; do
;;
x86)
- select_prefix i486
+ select_prefix i486 x86_64
CFLAGS="-fno-builtin -m32"
AS_FLAGS="-Wa,-32"
;;