X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure;h=eb72a1e6c04d089f1fbf8228688c9972cb19b0bf;hb=6fbdeff0e51f6afc38fbb1476a4db81322779da4;hp=89e1990917b02c4fe1bc9f8b3c741bfcc317e7ab;hpb=0b8f0c57c0ff78fc1af9c8f5831eb1c1fdd7d970;p=musl diff --git a/configure b/configure index 89e19909..eb72a1e6 100755 --- a/configure +++ b/configure @@ -226,7 +226,7 @@ case "$target" in mips64*|powerpc64*) fail "$0: unsupported target \"$target\"" ;; arm*) ARCH=arm ;; i?86*) ARCH=i386 ;; -x86_64-x32*|x32*) ARCH=x32 ;; +x86_64-x32*|x32*|x86_64*x32) ARCH=x32 ;; x86_64*) ARCH=x86_64 ;; mips*) ARCH=mips ;; microblaze*) ARCH=microblaze ;; @@ -410,6 +410,10 @@ printf "using compiler runtime libraries: %s\n" "$LIBCC" SUBARCH= t="$CFLAGS_C99FSE $CPPFLAGS $CFLAGS_AUTO $CFLAGS" +if test "$ARCH" = "x86_64" ; then +trycppif __ILP32__ "$t" && ARCH=x32 +fi + if test "$ARCH" = "arm" ; then trycppif __ARMEB__ "$t" && SUBARCH=${SUBARCH}eb trycppif __ARM_PCS_VFP "$t" && SUBARCH=${SUBARCH}hf