From 3add8e1353d62d77fdd9b4ca363cdfe7006b0efb Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 8 Feb 2012 01:45:26 +0000 Subject: Support crti.S and crtn.S provided directly by architectures. --- csu/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'csu/Makefile') 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). -- cgit 1.4.1