diff --git a/ChangeLog b/ChangeLog
index 1da2e0d7a6a..474f3d44b6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-05  Andreas Schwab  <schwab@suse.de>
+
+	* Makefile.tpl (stage_last): Define $r and $s before using
+	$(RECURSE_FLAGS_TO_PASS).
+	* Makefile.in: Regenerate
+
 2009-01-21  Jeff Johnston  <jjohnstn@redhat.com>
 
 	* COPYING.NEWLIB: Add ARM license.
@@ -43,13 +49,13 @@
 
 	2008-12-04  Jack Howarth  <howarth@bromo.med.uc.edu>
 
-        * configure.ac: Add double brackets on darwin[912].
-        * configure: Regenerate.
+	* configure.ac: Add double brackets on darwin[912].
+	* configure: Regenerate.
 
 	2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>
 
-        * configure.ac: Expand to darwin10 and later.
-        * configure: Regenerate.
+	* configure.ac: Expand to darwin10 and later.
+	* configure: Regenerate.
 
 2008-12-02  Andreas Schwab  <schwab@suse.de>
 
diff --git a/Makefile.in b/Makefile.in
index 2df155e1920..3ca3f26d774 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -54861,6 +54861,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
diff --git a/Makefile.tpl b/Makefile.tpl
index f654fb3df56..acb349ff742 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -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