summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-17 12:11:37 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-17 12:11:37 +0000
commitfec64b1a416cfeb0c9e57292924293d246251c8d (patch)
treeb525cef44de17fbeb977e8528a27dc0690619f43 /Makerules
parent28f1d458d486defa75486881307b902825f4a064 (diff)
fix parallel build with headers once and for all (i hope)
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index b4b2b9b81..0dcdae39c 100644
--- a/Makerules
+++ b/Makerules
@@ -29,6 +29,7 @@ all_objs: $(sort $(shared_objs) $(ar_objs))
else
all_objs: $(ar_objs)
endif
+$(shared_objs) $(ar_objs): | headers
headers-y: $(headers-y)
@true
@@ -161,7 +162,7 @@ CFLAGS-.oS+=$(PICFLAG) -DSHARED
%.s: %.c ; $(compile.s)
%.s: %.S ; $(compile.s)
-$(top_builddir)lib/interp.c:
+$(top_builddir)lib/interp.c: | headers
$(Q)$(INSTALL) -d $(dir $@)
$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
$(Q)echo "#include <features.h>" >> $@
@@ -217,6 +218,7 @@ CRTS_COMPAT :=
#endif
$(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT)
+$(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT): | headers
$(top_builddir)lib/$(NONSHARED_LIBNAME): $(libc-nonshared-y)
$(Q)$(INSTALL) -d $(dir $@)