[PATCH] Fix `make restrap'

Paolo Bonzini bonzini@gnu.org
Fri Apr 18 10:31:00 GMT 2008


This patch fixes `make restrap' (broken by toplevel libgcc) by not using 
recursive makefile invocation.  Thanks to Ian Lance Taylor for reporting 
it, I was not aware of the problem.

Paolo

2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.tpl (restrap): Invoke make all via a double-colon
	rule.
	* Makefile.in: Regenerate.

Index: Makefile.tpl
===================================================================
--- Makefile.tpl        (revision 133861)
+++ Makefile.tpl        (working copy)
@@ -1442,11 +1442,11 @@ stage_current:
         @if test -f stage_last; then $(unstage); else $(MAKE) 
stage1-start; fi

  .PHONY: restrap
-restrap:
+restrap::
         @: $(MAKE); $(stage)
         rm -rf stage1-$(TARGET_SUBDIR) [+ FOR bootstrap-stage +][+ IF prev
           +]stage[+id+]-* [+ ENDIF prev +][+ ENDFOR bootstrap-stage +]
-       $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
+restrap:: all
  @endif gcc-bootstrap

  # --------------------------------------



More information about the Gcc-patches mailing list