From: rofl0r Date: Tue, 7 Jan 2014 22:30:30 +0000 (+0100) Subject: configure: recognize x86_64-x32 and x32 X-Git-Tag: v1.0.0~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e4b2cdc1b3b881ffdcd8f2119a7bf850f01954d;p=musl configure: recognize x86_64-x32 and x32 x32 is the internal arch name, but glibc uses x86_64-x32. there doesn't exist a specific triple for x32 in gcc and binutils. you're supposed to build your compiler for x86_64 and configure it with multilib support for "mx32". however it turns out that using a triple of x86_64-x32 makes gcc and binutils pick up the right arch (they detect it as x86_64) and allows us to have a unique triple for cross-compiler toolchains. --- diff --git a/configure b/configure index aa3cb42d..ca4dd0bd 100755 --- a/configure +++ b/configure @@ -224,6 +224,7 @@ printf "%s\n" "$target" case "$target" in arm*) ARCH=arm ;; i?86*) ARCH=i386 ;; +x86_64-x32*|x32*) ARCH=x32 ;; x86_64*) ARCH=x86_64 ;; mips-*|mipsel-*) ARCH=mips ;; microblaze-*) ARCH=microblaze ;;