On Wed, 28 Feb 2018, root wrote:
> autotools-dev (20180224.1) unstable; urgency=medium
>
> * Sync to upstream git 2018-02-24
> [commit bd9626458c30d7faec17d7dfbd85a80617b10007]
> + Add detection of x32 ABI for x86_64-*-linux-gnu (closes: #891281)
Thanks to klibc lacking x32 support, /bin/sh is an amd64
binary on x32 machines with mksh’s lksh as /bin/sh, when
lksh is built with klibc (which is the default in Debian),
because klibc:x32 actually builds amd64 binaries.
I’d suggest this instead, which is actually dependent on
the compiler used¹:
x86_64:Linux:*:*)
eval "$set_cc_for_build"
if echo __ILP32__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ILP32__
then
echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
else
echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
fi
exit ;;
① This will detect klibc builds as amd64 instead of x32,
but that’s fine; it will detect regular x32 builds
correctly.
Thanks
//mirabilos
--
Yes, I hate users and I want them to suffer.
-- Marco d'Itri on gmane.linux.debian.devel.general