Date: Thu, 3 Dec 1998 12:35:34 +0000 From: Niall Smart <nialls@euristix.ie> To: patches@cygnus.com Cc: current@FreeBSD.ORG Subject: egcs' config.guess on FreeBSD ELF systems Message-ID: <98Dec3.123630gmt.19713@gateway.euristix.ie>
next in thread | raw e-mail | index | archive | help
[ Cc'd to current@freebsd.org for any comments ]
The config.guess script does not properly detect ELF vs. a.out for
FreeBSD leading to build failure on an ELF system unless the host
is explicitly specified as *-*-freebsdelf during configuration. The
appended patch remedies this.
Regards,
Niall
*** config.guess~ Thu Dec 3 12:19:41 1998
--- config.guess Thu Dec 3 12:25:13 1998
***************
*** 483,489 ****
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
exit 0 ;;
*:FreeBSD:*:*)
! echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit 0 ;;
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
--- 483,493 ----
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
exit 0 ;;
*:FreeBSD:*:*)
! if test -x /usr/bin/objformat -a "elf" = "`/usr/bin/objformat`"; then
! echo ${UNAME_MACHINE}-unknown-freebsdelf
! else
! echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
! fi
exit 0 ;;
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Dec3.123630gmt.19713>
