Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!agate!helios.ee.lbl.gov!wasatch!cs.utexas.edu!uunet!zephyr!tektronix!tekcrl!scott From: scott@tekcrl.LABS.TEK.COM (Scott Huddleston) Newsgroups: gnu.gcc.bug Subject: minor Makefile bug (1.35 and earlier) Message-ID: <4311@tekcrl.LABS.TEK.COM> Date: 15 Jul 89 00:50:08 GMT Reply-To: scott@tekcrl.LABS.TEK.COM (Scott Huddleston) Distribution: gnu Organization: Tektronix, Inc., Beaverton, OR. Lines: 46 When you "make bootstrap" and define libdir on the command line, the definition doesn't get passed on to the later stages. A patch follows. ------------ cut here -------------- *** old/Makefile Wed Jul 12 17:40:16 1989 --- Makefile Fri Jul 14 19:37:16 1989 *************** *** 512,528 **** bootstrap: all force $(MAKE) stage1 ! $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)" $(MAKE) stage2 ! $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" bootstrap2: force ! $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)" $(MAKE) stage2 ! $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" bootstrap3: force ! $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" # Copy the object files from a particular stage into a subdirectory. stage1: force --- 512,528 ---- bootstrap: all force $(MAKE) stage1 ! $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir) $(MAKE) stage2 ! $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir) bootstrap2: force ! $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir) $(MAKE) stage2 ! $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir) bootstrap3: force ! $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir) # Copy the object files from a particular stage into a subdirectory. stage1: force -- Scott Huddleston testing the semantics of the ".signature" file