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

From: O'Connor, Daniel <darius_at_dons.net.au>
Date: Mon, 20 Jul 2015 08:55:09 +0930
> 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
Received on Sun Jul 19 2015 - 21:30:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC