[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] eglibc success on eabi arm
- To: patches@xxxxxxxxxx
- Subject: [patches] eglibc success on eabi arm
- From: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 00:58:07 +0200
Hi all,
eglibc 2.6 (SVN) built fine for me on EABI ARM (native build),
and it seems to be able to run most binaries I tried (which were
built against glibc 2.6) OK.
I did have to apply the patch below to get it to pick up the
correct host target triple. (I've submitted this patch to the
'config' project on savannah.gnu.org.)
thanks,
Lennert
Index: config/config.guess
===================================================================
--- config.orig/config.guess
+++ config/config.guess
@@ -833,7 +833,14 @@ EOF
echo ${UNAME_MACHINE}-pc-minix
exit ;;
arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep __ARM_EABI__ >/dev/null
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu