aboutsummaryrefslogtreecommitdiff
path: root/csu/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-12-11 23:13:29 +0000
committerRoland McGrath <roland@gnu.org>2002-12-11 23:13:29 +0000
commit6161ef14c3a27847bd9c8b85e7d92ff75dd80c8a (patch)
treef6ebb7bf54ea5be481bb1e6fafe6c33e749e543a /csu/Makefile
parent0f1316460cae46817ae843d0bba15c259d77d0e6 (diff)
downloadglibc-6161ef14c3a27847bd9c8b85e7d92ff75dd80c8a.zip
glibc-6161ef14c3a27847bd9c8b85e7d92ff75dd80c8a.tar.gz
glibc-6161ef14c3a27847bd9c8b85e7d92ff75dd80c8a.tar.bz2
* csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
elf-init.o instead of compiling a PIC version.
Diffstat (limited to 'csu/Makefile')
-rw-r--r--csu/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/csu/Makefile b/csu/Makefile
index f3b099e..669e26c 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -139,6 +139,11 @@ define link-relocatable
$(CC) -nostdlib -nostartfiles -r -o $@ $^
endef
+# We don't want this compiled with PIC.
+# It's never included in shared libraries, unlike the rest of libc_nonshared.a.
+$(objpfx)elf-init.oS: $(objpfx)elf-init.o
+ ln -f $< $@
+
ifndef start-installed-name-rule
ifeq (yes,$(elf))
# We link the ELF startfile along with a SHT_NOTE section indicating