Subject: Re: MAKEOBJDIR not honored?
To: Greywolf <greywolf@starwolf.com>
From: Steven M. Bellovin <smb@research.att.com>
List: current-users
Date: 06/30/2003 21:16:59
In message <Pine.NEB.4.53.0306301208270.800@rivendell.starwolf.com>, Greywolf w
rites:
>Thus spake David Laight ("DL> ") sometime Saturday...
>
>DL> On Tue, Jun 24, 2003 at 11:19:45AM -0400, Steve Bellovin wrote:
>DL> > Following the recent discussion about rebuilding the system, I
>DL> > added the following lines to /etc/mk.conf:
>DL> >
>DL> > #ifndef BSD_PKG_MK
>DL> > MAKEOBJDIR=/usr/obj
>DL> > DESTDIR=/usr/netbsd
>DL> > #endif
>DL> >
>DL> > and ran
>DL> >
>DL> > PATH=$PATH:/usr/tools/bin ./build.sh -T /usr/tools distribution kernel=C
>HALLENGER
>DL> >
>DL> > It all worked, with one notable exception:  the .o files are all in /usr
>/src,
>DL> > rather than /usr/obj.  I thought that setting MAKEOBJDIR would take
>DL> > care of that.  (The build did indeed go to /usr/netbsd.)  What am I doin
>g
>DL> > wrong?
>DL>
>DL> Use './build.sh -O /usr/obj -D /usr/netbsd ...' and kill the stuff from
>DL> /etc/mk.conf.  Then it will all work.
>
>The fact that it does not honour mk.conf for this, considering it DOES
>honour it for other things, just seems broken to me.  Am I the only one?
>

Clearly, I agree with you...

		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com (2nd edition of "Firewalls" book)