mirror of https://github.com/encounter/SDL.git
updated config.guess and config.sub from mainstream
This commit is contained in:
parent
2a7948016a
commit
6422a5d259
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# shellcheck disable=SC2006,SC2268 # see below for rationale
|
# shellcheck disable=SC2006,SC2268 # see below for rationale
|
||||||
|
|
||||||
timestamp='2022-01-03'
|
timestamp='2022-05-08'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
|
@ -929,6 +929,9 @@ EOF
|
||||||
i*:PW*:*)
|
i*:PW*:*)
|
||||||
GUESS=$UNAME_MACHINE-pc-pw32
|
GUESS=$UNAME_MACHINE-pc-pw32
|
||||||
;;
|
;;
|
||||||
|
*:SerenityOS:*:*)
|
||||||
|
GUESS=$UNAME_MACHINE-pc-serenity
|
||||||
|
;;
|
||||||
*:Interix*:*)
|
*:Interix*:*)
|
||||||
case $UNAME_MACHINE in
|
case $UNAME_MACHINE in
|
||||||
x86)
|
x86)
|
||||||
|
@ -1148,16 +1151,27 @@ EOF
|
||||||
;;
|
;;
|
||||||
x86_64:Linux:*:*)
|
x86_64:Linux:*:*)
|
||||||
set_cc_for_build
|
set_cc_for_build
|
||||||
|
CPU=$UNAME_MACHINE
|
||||||
LIBCABI=$LIBC
|
LIBCABI=$LIBC
|
||||||
if test "$CC_FOR_BUILD" != no_compiler_found; then
|
if test "$CC_FOR_BUILD" != no_compiler_found; then
|
||||||
if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
|
ABI=64
|
||||||
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
|
sed 's/^ //' << EOF > "$dummy.c"
|
||||||
grep IS_X32 >/dev/null
|
#ifdef __i386__
|
||||||
then
|
ABI=x86
|
||||||
LIBCABI=${LIBC}x32
|
#else
|
||||||
|
#ifdef __ILP32__
|
||||||
|
ABI=x32
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
|
||||||
|
eval "$cc_set_abi"
|
||||||
|
case $ABI in
|
||||||
|
x86) CPU=i686 ;;
|
||||||
|
x32) LIBCABI=${LIBC}x32 ;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
GUESS=$CPU-pc-linux-$LIBCABI
|
||||||
GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
|
|
||||||
;;
|
;;
|
||||||
xtensa*:Linux:*:*)
|
xtensa*:Linux:*:*)
|
||||||
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
|
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
|
||||||
|
|
Loading…
Reference in New Issue