2014-09-12 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
+ (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
+ Regenerated.
+ * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
+ Condition symbol version definitions on [HAVE_ELFV2_ABI].
+
* shlib-versions: Remove OS-specific entries. Moved to files in
sysdeps.
* sysdeps/mach/hurd/shlib-versions: New file.
/* Define if using the IEEE 754-2008 NaN encoding on the MIPS target. */
#undef HAVE_MIPS_NAN2008
+/* The PowerPC64 ELFv2 ABI is being used. */
+#undef HAVE_ELFV2_ABI
+
#endif
if test $libc_cv_ppc64_elfv2_abi = yes; then
config_vars="$config_vars
default-abi = 64-v2"
+ # For shlib-versions.
+ $as_echo "#define HAVE_ELFV2_ABI 1" >>confdefs.h
+
else
config_vars="$config_vars
default-abi = 64-v1"
], libc_cv_ppc64_elfv2_abi=yes, libc_cv_ppc64_elfv2_abi=no)])
if test $libc_cv_ppc64_elfv2_abi = yes; then
LIBC_CONFIG_VAR([default-abi], [64-v2])
+ # For shlib-versions.
+ AC_DEFINE(HAVE_ELFV2_ABI)
else
LIBC_CONFIG_VAR([default-abi], [64-v1])
# Compiler that do not support ELFv2 ABI does not define _CALL_ELF
-powerpc64-.*-linux.* DEFAULT GLIBC_2.3
+%ifdef HAVE_ELFV2_ABI
powerpc.*le-.*-linux.* DEFAULT GLIBC_2.17
-powerpc64-.*-linux.* libpthread=0 GLIBC_2.3
powerpc.*le-.*-linux.* libpthread=0 GLIBC_2.17
+%else
+powerpc64-.*-linux.* DEFAULT GLIBC_2.3
+powerpc64-.*-linux.* libpthread=0 GLIBC_2.3
+%endif