* config.guess (i*86:Linux:*:*): Remove checks for whether the

default compiler produces a.out binaries.  For all i*86 GNU/Linux
	systems, the triplet guess is now ${UNAME_MACHINE}-pc-linux-gnu.
This commit is contained in:
Ben Elliston 2009-09-18 10:36:43 +10:00
parent d58a416fbd
commit 06193442fa
2 changed files with 8 additions and 51 deletions

View File

@ -1,3 +1,9 @@
2009-09-18 Ben Elliston <bje@gnu.org>
* config.guess (i*86:Linux:*:*): Remove checks for whether the
default compiler produces a.out binaries. For all i*86 GNU/Linux
systems, the triplet guess is now ${UNAME_MACHINE}-pc-linux-gnu.
2009-09-18 Ben Elliston <bje@gnu.org> 2009-09-18 Ben Elliston <bje@gnu.org>
* config.guess (*:Linux:*:*): Reorder the Linux architectures so * config.guess (*:Linux:*:*): Reorder the Linux architectures so

53
config.guess vendored
View File

@ -891,57 +891,8 @@ EOF
echo frv-unknown-linux-gnu echo frv-unknown-linux-gnu
exit ;; exit ;;
i*86:Linux:*:*) i*86:Linux:*:*)
# The BFD linker knows what the default object file format is, so echo ${UNAME_MACHINE}-pc-linux-gnu
# first see if it will tell us. cd to the root directory to prevent exit ;;
# problems with other programs or directories called `ld' in the path.
# Set LC_ALL=C to ensure ld outputs messages in English.
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
| sed -ne '/supported targets:/!d
s/[ ][ ]*/ /g
s/.*supported targets: *//
s/ .*//
p'`
case "$ld_supported_targets" in
elf32-i386)
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
;;
esac
# Determine whether the default compiler is a.out or elf
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#include <features.h>
#ifdef __ELF__
# ifdef __GLIBC__
# if __GLIBC__ >= 2
LIBC=gnu
# else
LIBC=gnulibc1
# endif
# else
LIBC=gnulibc1
# endif
#else
#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
LIBC=gnu
#else
LIBC=gnuaout
#endif
#endif
#ifdef __dietlibc__
LIBC=dietlibc
#endif
EOF
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
/^LIBC/{
s: ::g
p
}'`"
test x"${LIBC}" != x && {
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
exit
}
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
;;
ia64:Linux:*:*) ia64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;; exit ;;