aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/arm/preconfigure
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
parent8badf496ab2cfa40a8d98fa0557b69c539e10a72 (diff)
downloadglibc-37fccd41923a26bb1c3e083b8bc5e398e77a24d1.tar
glibc-37fccd41923a26bb1c3e083b8bc5e398e77a24d1.tar.gz
glibc-37fccd41923a26bb1c3e083b8bc5e398e77a24d1.tar.bz2
glibc-37fccd41923a26bb1c3e083b8bc5e398e77a24d1.zip
ARM: Clean up EABI-related configury
Diffstat (limited to 'sysdeps/arm/preconfigure')
-rw-r--r--sysdeps/arm/preconfigure46
1 files changed, 30 insertions, 16 deletions
diff --git a/sysdeps/arm/preconfigure b/sysdeps/arm/preconfigure
index b3124edae2..59d776d5ca 100644
--- a/sysdeps/arm/preconfigure
+++ b/sysdeps/arm/preconfigure
@@ -3,22 +3,36 @@
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*)
- as_fn_error $? "Old ABI no longer supported" "$LINENO" 5
- ;;
- esac
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if !__ARM_EABI__
+#error
+#endif
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ as_fn_error $? "Old ABI no longer supported" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ # 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