From d9afcd80fc3feb83684c530adc7413e5ed17cf98 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 2 Dec 2018 23:28:02 -0800 Subject: Warn if architecture is empty on x86/32bit as that defaults to i386, which will fail with glibc (and likely other libcs). Fixes #617. Signed-off-by: Alexey Neyman --- scripts/build/arch/x86.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/arch/x86.sh b/scripts/build/arch/x86.sh index 471d377a..0538d66c 100644 --- a/scripts/build/arch/x86.sh +++ b/scripts/build/arch/x86.sh @@ -10,7 +10,11 @@ CT_DoArchTupleValues() { arch="${CT_ARCH_ARCH}" [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}" case "${arch}" in - "") CT_TARGET_ARCH=i386;; + "") + CT_DoLog WARN "Architecture level is not specified for 32-bit x86; defaulting to i386." + CT_DoLog WARN "This may not be supported by the C library." + CT_TARGET_ARCH=i386 + ;; i386|i486|i586|i686) CT_TARGET_ARCH="${arch}";; winchip*) CT_TARGET_ARCH=i486;; pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;; -- cgit v1.2.3