about summary refs log tree commit diff
path: root/sysdeps/sparc/elf/configure
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-02-20 17:47:27 -0800
committerDavid S. Miller <davem@davemloft.net>2012-02-20 17:52:07 -0800
commitd510c12326901bb3725a7e5a3b7602a3e266be56 (patch)
tree5f16e221048663c10effa074b833ac975904a9c1 /sysdeps/sparc/elf/configure
parent0722d7c2ac52b343e895b0726fd08ec8e9677c04 (diff)
downloadglibc-d510c12326901bb3725a7e5a3b7602a3e266be56.tar.gz
glibc-d510c12326901bb3725a7e5a3b7602a3e266be56.tar.xz
glibc-d510c12326901bb3725a7e5a3b7602a3e266be56.zip
Use PI_STATIC_AND_HIDDEN on sparc if we universally use GOTDATA relocs.
	* sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
	both binutils and gcc support GOTDATA.
Diffstat (limited to 'sysdeps/sparc/elf/configure')
-rw-r--r--sysdeps/sparc/elf/configure6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/sparc/elf/configure b/sysdeps/sparc/elf/configure
index 67a40398c7..a2545403ef 100644
--- a/sysdeps/sparc/elf/configure
+++ b/sysdeps/sparc/elf/configure
@@ -209,3 +209,9 @@ if test $libc_cv_sparc_gcc_gotdata = yes; then
   $as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h
 
 fi
+
+if test $libc_cv_sparc_gcc_gotdata = yes \
+   && test $libc_cv_sparc_gotdata = yes; then
+  $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
+
+fi