Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2015 11:59:01 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        "O'Connor, Daniel" <darius@dons.net.au>
Cc:        Tim Kientzle <tim@kientzle.com>, Rick Macklem <rmacklem@uoguelph.ca>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: -current broken when MAKEOBJDIRPREFIX is set (was: src is on NFS)
Message-ID:  <15209.1437332341@chaos>
In-Reply-To: <FB13089A-4562-4FCB-ADCD-039A1A2E90E0@dons.net.au>
References:  <1C5FC434-0646-40E5-83AC-A0DE486D3273@dons.net.au> <1589003792.10086361.1437048709012.JavaMail.zimbra@uoguelph.ca> <D0292F78-AE59-4E02-B24F-420129832A47@dons.net.au> <DDD4254F-FD46-4155-8644-2F274AE9AE16@kientzle.com> <BCA54145-46C0-4976-A530-5CCF8B4CAC56@dons.net.au> <6668.1437240399@chaos> <FB13089A-4562-4FCB-ADCD-039A1A2E90E0@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
O'Connor, Daniel <darius@dons.net.au> wrote:
> Yeah the subject is wrong (I just updated it).
> 
> I just did a build like so and it worked..
> env MAKEOBJDIRPREFIX=/src/obj-amd64 make -j 8 buildworld

That's the right way to use it.

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

> So, it seems MAKEOBJDIRPREFIX only works as an environmental variable

Yes, it has always been documented that way.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15209.1437332341>