summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2014-01-07 23:30:30 +0100
committerrofl0r <retnyg@gmx.net>2014-02-23 11:09:33 +0100
commit3e4b2cdc1b3b881ffdcd8f2119a7bf850f01954d (patch)
tree41f3745afe561560854f893eb50ce60153946c52 /configure
parent664cd341921007cea52c8891f27ce35927dca378 (diff)
downloadmusl-3e4b2cdc1b3b881ffdcd8f2119a7bf850f01954d.tar.gz
musl-3e4b2cdc1b3b881ffdcd8f2119a7bf850f01954d.tar.bz2
musl-3e4b2cdc1b3b881ffdcd8f2119a7bf850f01954d.tar.xz
musl-3e4b2cdc1b3b881ffdcd8f2119a7bf850f01954d.zip
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
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 ;;