summaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-02-08 01:45:26 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-02-08 01:45:26 +0000
commit3add8e1353d62d77fdd9b4ca363cdfe7006b0efb (patch)
tree39d3a6907fc55059bf6705f1ea8a372a23bdeff5 /csu
parenta22f12b477654522f5be86a0148c30b7a24bd507 (diff)
downloadglibc-3add8e1353d62d77fdd9b4ca363cdfe7006b0efb.tar.gz
Support crti.S and crtn.S provided directly by architectures.
Diffstat (limited to 'csu')
-rw-r--r--csu/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/csu/Makefile b/csu/Makefile
index 601264d952..05bc0e47e5 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -84,6 +84,13 @@ crtstuff = crti crtn
install-lib += $(crtstuff:=.o)
extra-objs += $(crtstuff:=.o)
+
+# Conditionals on the existence of a sysdeps version of crti.S are
+# temporary until all targets either have such a file or have been
+# removed, after which the old approach of postprocessing compiler
+# output will be removed.
+ifeq (,$(wildcard $(sysdirs:%=%/crti.S)))
+
generated += $(crtstuff:=.S) initfini.s defs.h
omit-deps += $(crtstuff)
@@ -122,6 +129,8 @@ $(objpfx)defs.h: $(objpfx)initfini.s
endif
+endif
+
extra-objs += abi-note.o init.o
asm-CPPFLAGS += -I$(objpfx).