This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] Correctly detect all ARM EABI variants
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: libc-ports at sourceware dot org
- Cc: Konstantinos Margaritis <markos at genesi-usa dot com>
- Date: Sun, 8 May 2011 22:32:13 +0200
- Subject: [PATCH] Correctly detect all ARM EABI variants
Debian uses the arm-linux-gnueabihf triplet to distinguish the hardfloat
ABI from the softfloat one. Unfortunately the triplet is detect as old
ABI in that case.
The patch below from Konstantinos Margaritis fixes the issue.
2011-05-07 Konstantinos Margaritis <markos@genesi-usa.com>
* sysdeps/arm/preconfigure: Detect arm-linux-gnueabi* as ARM
EABI.
* sysdeps/arm/shlib-versions: Ditto.
--- a/sysdeps/arm/preconfigure
+++ b/sysdeps/arm/preconfigure
@@ -2,7 +2,7 @@
arm*)
base_machine=arm
case $config_os in
- linux-gnueabi)
+ linux-gnueabi*)
machine=arm/eabi/$machine
if [ "${CFLAGS+set}" != "set" ]; then
CFLAGS="-g -O2"
--- a/sysdeps/arm/shlib-versions
+++ b/sysdeps/arm/shlib-versions
@@ -1,4 +1,4 @@
-arm.*-.*-linux-gnueabi DEFAULT GLIBC_2.4
+arm.*-.*-linux-gnueabi* DEFAULT GLIBC_2.4
-arm.*-.*-linux-gnueabi ld=ld-linux.so.3
+arm.*-.*-linux-gnueabi* ld=ld-linux.so.3
arm.*-.*-linux.* ld=ld-linux.so.2
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net