summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-17 12:11:00 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-17 12:11:00 +0000
commit28f1d458d486defa75486881307b902825f4a064 (patch)
treea423404a5c14fdb5f2aa8abb062f0ea6723f03ba /Makerules
parentb5db14a3fb9fbcd780b4fcb05c2298c8bbef0a54 (diff)
combine the crt1.0/Scrt1.o rules since they are pretty much the samething
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules13
1 files changed, 5 insertions, 8 deletions
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