[PATCH] Fix unified tree breakage
Paolo Bonzini
paolo.bonzini@lu.unisi.ch
Wed Oct 5 14:09:00 GMT 2005
>Restarting the make after binutils has been built should work ok, but
>that's not really the point.
>
>
The attached patch should fix it.
With the patch, we get this sequence for bootstrap:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if [ ! -f stage_last ]; then \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) bootstrap; \
fi
@$(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(TARGET_FLAGS_TO_PASS) all-host
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-target
@$(stage)
for GCC, no bootstrap:
@$(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-prebootstrap
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-target
@$(stage)
And for no GCC:
@$(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-target
@$(stage)
Richard, does it work for you?
Paolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-breakage-for-rearnshaw.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20051005/e2172aae/attachment.ksh>
More information about the Newlib
mailing list