]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - Makefile.tpl
Makefile.tpl (stage_last): Define $r and $s before using $(RECURSE_FLAGS_TO_PASS).
[thirdparty/gcc.git] / Makefile.tpl
index f654fb3df56bc63049daa414467a1871f8385d5d..acb349ff742f99107c4abeaf0847657616ed4587 100644 (file)
@@ -1468,6 +1468,8 @@ do-distclean: distclean-stage1
 # Provide a GCC build when we're building target libraries.  This does
 # not work as a dependency, just as the minimum necessary to avoid errors.
 stage_last:
+       @r=`${PWD_COMMAND}`; export r; \
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
        $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
 
 # Same as unstage, but not phony and defaulting to stage1-start.  We place