Subject: Re: two builds on the same tree
To: Dave Huang <>
From: Simon Burge <>
List: current-users
Date: 03/14/2001 10:36:19
Dave Huang wrote:

> On Tue, 13 Mar 2001, J. Buck Caldwell wrote:
> > See, I just avoid all that environment stuff from the get-go.
> > I mount the source tree NFS Read-Only, then union-mount a local
> > filesystem over the usr/src on each machine I intend to build
> > on. Works like a charm - leaves the source tree untaintened,
> > and keeps all of the arch-specific stuff on each build machine.
> That's what I used to do too, but union mounts with a NFS lower layer
> are broken in -current :( (PR kern/11731)

Another option is to use MAKEOBJDIRPREFIX (see make(1) and
/usr/share/mk/bsd.README for info).

I have MAKEOBJDIRPREFIX=/usr/obj and /usr/src is NFS mounted
read-only on most of my machines.

Simon Burge                            <>
NetBSD CDs, Support and Service: