about summary refs log tree commit diff
path: root/nptl/sysdeps/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-02-16 12:54:05 -0800
committerDavid S. Miller <davem@davemloft.net>2012-02-16 12:54:05 -0800
commitf63f338062e1d390330484412840467b0ec659b0 (patch)
tree9ac3ceb3e60399af064f7279b7c74b17a37bb808 /nptl/sysdeps/sparc
parentdf6a4a4aec992a20cdea2ad4cfc1341b3e96978b (diff)
downloadglibc-f63f338062e1d390330484412840467b0ec659b0.tar.gz
glibc-f63f338062e1d390330484412840467b0ec659b0.tar.xz
glibc-f63f338062e1d390330484412840467b0ec659b0.zip
Move sparc away from the deprecated inifini.c scheme.
/

	* sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
	* sysdeps/sparc/crti.S: New file.
	* sysdeps/sparc/crtn.S: New file.
	* sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
	* sysdeps/sparc/sparc64/Makefile: Likewise.

nptl/

	* sysdeps/sparc/Makefile: Add -fPIC when building pt-crti.S and crtn.S
Diffstat (limited to 'nptl/sysdeps/sparc')
-rw-r--r--nptl/sysdeps/sparc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl/sysdeps/sparc/Makefile b/nptl/sysdeps/sparc/Makefile
index 81bddf688c..5372867dbd 100644
--- a/nptl/sysdeps/sparc/Makefile
+++ b/nptl/sysdeps/sparc/Makefile
@@ -1,3 +1,8 @@
 ifeq ($(subdir),csu)
 gen-as-const-headers += tcb-offsets.sym
 endif
+
+ifeq ($(subdir),nptl)
+CPPFLAGS-pt-crti.S += -fPIC
+CPPFLAGS-crtn.S += -fPIC
+endif