From 28f1d458d486defa75486881307b902825f4a064 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 17 Feb 2006 12:11:00 +0000 Subject: combine the crt1.0/Scrt1.o rules since they are pretty much the samething --- Makerules | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 47c0157ec..b4b2b9b81 100644 --- a/Makerules +++ b/Makerules @@ -181,7 +181,7 @@ $(libc): $(headers_dep): @cd $(top_builddir); $(MAKE) headers -CRT=crt1 +CRT := crt1 ifeq ($(HAVE_SHARED),y) CRTS=$(top_builddir)lib/$(CRT).o $(top_builddir)lib/S$(CRT).o @@ -189,14 +189,11 @@ else CRTS=$(top_builddir)lib/$(CRT).o endif -$(top_builddir)lib/$(CRT).o: $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(CRT).S +ASFLAGS-$(CRT).o := -DL_$(CRT) +ASFLAGS-S$(CRT).o := $(PIEFLAG) -DL_S$(CRT) +$(CRTS): $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(CRT).S $(Q)$(INSTALL) -d $(dir $@) - $(compile.S) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@)) - $(Q)$(STRIPTOOL) -x -R .note -R .comment $@ - -$(top_builddir)lib/S$(CRT).o: $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(CRT).S - $(Q)$(INSTALL) -d $(dir $@) - $(compile.S) $(PIEFLAG) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@)) + $(compile.S) $(Q)$(STRIPTOOL) -x -R .note -R .comment $@ CTOR_TARGETS=$(top_builddir)lib/crti.o $(top_builddir)lib/crtn.o -- cgit v1.2.3