Subject: Re: MAKEOBJDIR not honored?
To: <>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 06/28/2003 16:52:13
On Tue, Jun 24, 2003 at 11:19:45AM -0400, Steve Bellovin wrote:
> Following the recent discussion about rebuilding the system, I
> added the following lines to /etc/mk.conf:
> 
> #ifndef BSD_PKG_MK
> MAKEOBJDIR=/usr/obj
> DESTDIR=/usr/netbsd
> #endif
> 
> and ran
> 
> PATH=$PATH:/usr/tools/bin ./build.sh -T /usr/tools distribution kernel=CHALLENGER
> 
> It all worked, with one notable exception:  the .o files are all in /usr/src,
> rather than /usr/obj.  I thought that setting MAKEOBJDIR would take
> care of that.  (The build did indeed go to /usr/netbsd.)  What am I doing
> wrong?

Use './build.sh -O /usr/obj -D /usr/netbsd ...' and kill the stuff from
/etc/mk.conf.  Then it will all work.

	David

-- 
David Laight: david@l8s.co.uk