mirror of
git://git.musl-libc.org/musl
synced 2025-01-18 04:41:24 +00:00
configure: check for __ILP32__ if arch is x86_64
otherwise a multilib compiler used with -mx32 will not be detected properly.
This commit is contained in:
parent
9505bfbc40
commit
8c820231ed
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user