-current broken when MAKEOBJDIRPREFIX is set (was: src is on NFS)

O'Connor, Daniel darius at dons.net.au
Sun Jul 19 23:30:31 UTC 2015


> On 20 Jul 2015, at 04:29, Simon J. Gerraty <sjg at juniper.net> wrote:
> O'Connor, Daniel <darius at dons.net.au> wrote:
>> 
>> But this did not..
>> make -j 8 buildworld MAKEOBJDIRPREFIX=/src/obj-amd64
> 
> Nor should it.
> There are several makefiles in the tree that expect to be able to 
> change MAKEOBJDIRPREFIX in the environment of a sub-make.
> When you set it on the command line like that you prevent such changes
> from working.

Ahh.. You learn something new every day :)

>> So, it seems MAKEOBJDIRPREFIX only works as an environmental variable
> 
> Yes, it has always been documented that way.

Weird, I could have sworn I have set it on the command line and had it work, but..

>> - I wonder if there is a way the make system can be changed to warn
>> about that?
> 
> I thought there was a check in src/Makefile for that.

Not so far as I can tell - it certainly gets quite far before blowing up with a non useful error message :)

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C



More information about the freebsd-current mailing list