Subject: Re: bmake link errors running bootstrap-pkgsrc bootstrap twice
To: Mark Valentine <>
From: Simon J. Gerraty <>
List: tech-pkg
Date: 10/07/2003 08:21:58
>> > FWIW the boot-strap script which comes with recent bmake versions does
>> > ${MAKE:-make} -f makefile.boot clean
>> > before doing anything else.  To cover this case.
>> For this situation that would work only due to the fact that makefile.boot
>> removes more *.o files than it's really responsible for.  If it was "fixed"
>> only to clean up after itself, then the lst*.o files created by running
>> bmake -f Makefile would remain.

>Well, actually it if were fixed in that way then it would presumably also be
>fixed only to link in named .o files, so the bogus lst*.o files wouldn't cause
>a problem...

Correct, the clean target cleans what the link target links against, so
it is quite appropriate to use in this manner.

There are no plans to "fix" makefile.boot.
It is a deliberately low tech makefile - making minimal assumptions 
about what ${MAKE} can handle.