This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH RFA: Remove prev-DIR/Makefile to force reconfigure
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 13 Dec 2006 09:42:48 -0800
- Subject: PATCH RFA: Remove prev-DIR/Makefile to force reconfigure
There is code in the top level configure.in file to force
subdirectories to be reconfigured by removing DIR/Makefile. That code
handles stage*-DIR. However, if you have completed a bootstrap, the
directories will be named stage1-DIR and prev-DIR. In order to
properly force a reconfigure, prev-DIR/Makefile needs to be removed
also.
This patch does that. Tested by running configure. OK for mainline?
I will commit to src after approved for gcc.
Ian
2006-12-13 Ian Lance Taylor <iant@google.com>
* configure.in: When removing Makefiles to force a reconfigure, also
remove prev-DIR*/Makefile.
* configure: Regenerate.
Index: configure.in
===================================================================
--- configure.in (revision 119766)
+++ configure.in (working copy)
@@ -1896,7 +1896,7 @@ for module in ${build_configdirs} ; do
done
for module in ${configdirs} ; do
if test -z "${no_recursion}"; then
- for file in stage*-${module}/Makefile ${module}/Makefile; do
+ for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
if test -f ${file}; then
echo 1>&2 "*** removing ${file} to force reconfigure"
rm -f ${file}