This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Errors in -start targets for stage2 and later
- From: Russ Allbery <rra at stanford dot edu>
- To: Matt Kraai <kraai at alumni dot cmu dot edu>
- Cc: gcc at gcc dot gnu dot org, Zack Weinberg <zack at codesourcery dot com>
- Date: Mon, 07 Jul 2003 11:28:08 -0700
- Subject: Re: Errors in -start targets for stage2 and later
- Organization: The Eyrie
- References: <20030707072726.GE15907@ftbfs.org>
Matt Kraai <kraai@alumni.cmu.edu> writes:
> Why were they changed from
> for dir in $(SUBDIRS);
> to
> subdirs="$(SUBDIRS)"; for dir in $subdirs;
The latter construct is more portable if $(SUBDIRS) can be emtpy. The
first construct will error out on some shells if $(SUBDIRS) is empty.
The $ in $subdirs should be doubled, though.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>