aboutsummaryrefslogtreecommitdiff
path: root/csu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'csu/Makefile')
-rw-r--r--csu/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/csu/Makefile b/csu/Makefile
index 601264d..05bc0e4 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).