Browse Source

fix parallel build with headers once and for all (i hope)

Mike Frysinger 19 years ago
parent
commit
fec64b1a41
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Makerules

+ 3 - 1
Makerules

@@ -29,6 +29,7 @@ all_objs: $(sort $(shared_objs) $(ar_objs))
 else
 else
 all_objs: $(ar_objs)
 all_objs: $(ar_objs)
 endif
 endif
+$(shared_objs) $(ar_objs): | headers
 
 
 headers-y: $(headers-y)
 headers-y: $(headers-y)
 	@true
 	@true
@@ -161,7 +162,7 @@ CFLAGS-.oS+=$(PICFLAG) -DSHARED
 %.s:  %.c ; $(compile.s)
 %.s:  %.c ; $(compile.s)
 %.s:  %.S ; $(compile.s)
 %.s:  %.S ; $(compile.s)
 
 
-$(top_builddir)lib/interp.c:
+$(top_builddir)lib/interp.c: | headers
 	$(Q)$(INSTALL) -d $(dir $@)
 	$(Q)$(INSTALL) -d $(dir $@)
 	$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
 	$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
 	$(Q)echo "#include <features.h>" >> $@
 	$(Q)echo "#include <features.h>" >> $@
@@ -217,6 +218,7 @@ CRTS_COMPAT :=
 #endif
 #endif
 
 
 $(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT)
 $(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT)
+$(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT): | headers
 
 
 $(top_builddir)lib/$(NONSHARED_LIBNAME): $(libc-nonshared-y)
 $(top_builddir)lib/$(NONSHARED_LIBNAME): $(libc-nonshared-y)
 	$(Q)$(INSTALL) -d $(dir $@)
 	$(Q)$(INSTALL) -d $(dir $@)