about summary refs log tree commit diff
path: root/ports/sysdeps/aarch64/configure.ac
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@linaro.org>2014-01-01 17:29:23 +0000
committerMarcus Shawcroft <marcus.shawcroft@linaro.org>2014-01-20 15:43:06 +0000
commitb67e7fe0f9f9b0f6c4386a0eccba83178098438c (patch)
tree7f783b00d742a54ec7b0ec4058fe06e8a423fdb9 /ports/sysdeps/aarch64/configure.ac
parent91cbd0bc72387d0729136e44002082fbdd9cd42d (diff)
downloadglibc-b67e7fe0f9f9b0f6c4386a0eccba83178098438c.tar.gz
glibc-b67e7fe0f9f9b0f6c4386a0eccba83178098438c.tar.xz
glibc-b67e7fe0f9f9b0f6c4386a0eccba83178098438c.zip
[AArch64] Define BE loader name.
Diffstat (limited to 'ports/sysdeps/aarch64/configure.ac')
-rw-r--r--ports/sysdeps/aarch64/configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/ports/sysdeps/aarch64/configure.ac b/ports/sysdeps/aarch64/configure.ac
new file mode 100644
index 0000000000..7851dd4dac
--- /dev/null
+++ b/ports/sysdeps/aarch64/configure.ac
@@ -0,0 +1,22 @@
+GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
+# Local configure fragment for sysdeps/aarch64.
+
+# We check to see if the compiler and flags are
+# selecting the big endian ABI and if they are then
+# we set libc_cv_aarch64_be to yes which causes
+# HAVE_AARCH64_BE to be defined in config.h and
+# in include/libc-symbols.h and thus available to
+# shlib-versions to select the appropriate name for
+# the dynamic linker via %ifdef.
+AC_CACHE_CHECK([for big endian],
+  [libc_cv_aarch64_be],
+  [AC_EGREP_CPP(yes,[#ifdef __AARCH64EB__
+                      yes
+                     #endif
+  ], libc_cv_aarch64_be=yes, libc_cv_aarch64_be=no)])
+if test $libc_cv_aarch64_be = yes; then
+  AC_DEFINE(HAVE_AARCH64_BE)
+  LIBC_CONFIG_VAR([default-abi], [lp64_be])
+else
+  LIBC_CONFIG_VAR([default-abi], [lp64])
+fi