Errors in -start targets for stage2 and later

Russ Allbery rra@stanford.edu
Mon Jul 7 18:39:00 GMT 2003


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/>



More information about the Gcc mailing list