about summary refs log tree commit diff
path: root/sysdeps/arm/preconfigure.ac
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-07-16 15:18:36 -0700
committerRoland McGrath <roland@hack.frob.com>2014-07-16 15:18:36 -0700
commit37fccd41923a26bb1c3e083b8bc5e398e77a24d1 (patch)
treef7ce3f321ddc19192f2c7f2ed92f9e298ab4b347 /sysdeps/arm/preconfigure.ac
parent8badf496ab2cfa40a8d98fa0557b69c539e10a72 (diff)
downloadglibc-37fccd41923a26bb1c3e083b8bc5e398e77a24d1.tar.gz
glibc-37fccd41923a26bb1c3e083b8bc5e398e77a24d1.tar.xz
glibc-37fccd41923a26bb1c3e083b8bc5e398e77a24d1.zip
ARM: Clean up EABI-related configury
Diffstat (limited to 'sysdeps/arm/preconfigure.ac')
-rw-r--r--sysdeps/arm/preconfigure.ac29
1 files changed, 13 insertions, 16 deletions
diff --git a/sysdeps/arm/preconfigure.ac b/sysdeps/arm/preconfigure.ac
index 39c86218aa..d78817b83e 100644
--- a/sysdeps/arm/preconfigure.ac
+++ b/sysdeps/arm/preconfigure.ac
@@ -3,22 +3,19 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 
 case "$machine" in
 arm*)
-  case $config_os in
-  linux-gnueabi*)
-    # If the compiler enables unwind tables by default, this causes
-    # problems with undefined symbols in -nostdlib link tests.  To
-    # avoid this, add -fno-unwind-tables here and remove it in
-    # sysdeps/unix/sysv/linux/arm/configure.ac after those tests have
-    # been run.
-    if test "${CFLAGS+set}" != "set"; then
-      CFLAGS="-g -O2"
-    fi
-    CFLAGS="$CFLAGS -fno-unwind-tables"
-    ;;
-  linux*)
-    AC_MSG_ERROR([Old ABI no longer supported])
-    ;;
-  esac
+  AC_TRY_COMPILE([
+#if !__ARM_EABI__
+#error
+#endif], [], [], [AC_MSG_ERROR([Old ABI no longer supported])])
+
+  # If the compiler enables unwind tables by default, this causes
+  # problems with undefined symbols in -nostdlib link tests.  To
+  # avoid this, add -fno-unwind-tables here and remove it in
+  # sysdeps/arm/configure.ac after those tests have been run.
+  if test "${CFLAGS+set}" != "set"; then
+    CFLAGS="-g -O2"
+  fi
+  CFLAGS="$CFLAGS -fno-unwind-tables"
 
   base_machine=arm
   # Lets ask the compiler which ARM family we've got