aboutsummaryrefslogtreecommitdiff
path: root/csu/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-12-12 02:43:49 +0000
committerRoland McGrath <roland@gnu.org>2002-12-12 02:43:49 +0000
commit06216d348181718d12d9b6d0258d8560695d3947 (patch)
tree41c17c5c6b78725bd20929707eda36d0b267d614 /csu/Makefile
parent000160a268fe8a04265f24278907e9602823fc61 (diff)
downloadglibc-06216d348181718d12d9b6d0258d8560695d3947.tar
glibc-06216d348181718d12d9b6d0258d8560695d3947.tar.gz
glibc-06216d348181718d12d9b6d0258d8560695d3947.tar.bz2
glibc-06216d348181718d12d9b6d0258d8560695d3947.zip
2002-12-11 Roland McGrath <roland@redhat.com>
* csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino. (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables. Turn off PIC for compiling this file.
Diffstat (limited to 'csu/Makefile')
-rw-r--r--csu/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/csu/Makefile b/csu/Makefile
index 669e26c32d..0829e01278 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -80,6 +80,11 @@ ifeq ($(have-initfini),yes)
CPPFLAGS += -DHAVE_INITFINI
+# We don't want this compiled with PIC.
+# It's never included in shared libraries, unlike the rest of libc_nonshared.a.
+CPPFLAGS-elf-init.oS = $(patsubst %,-UPIC,$(pic-ccflag))
+CFLAGS-elf-init.oS = $(patsubst -f%,-fno-%,$(pic-ccflag))
+
# These are the special initializer/finalizer files. They are always the
# first and last file in the link. crti.o ... crtn.o define the global
# "functions" _init and _fini to run the .init and .fini sections.
@@ -139,11 +144,6 @@ 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