From owner-freebsd-current Mon Aug 31 05:31:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA11882 for freebsd-current-outgoing; Mon, 31 Aug 1998 05:31:15 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA11861 for ; Mon, 31 Aug 1998 05:31:12 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.8/8.8.7) id WAA20332; Mon, 31 Aug 1998 22:42:20 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199808311242.WAA20332@cimlogic.com.au> Subject: Re: different E-problem In-Reply-To: from Chuck Robey at "Aug 31, 98 07:12:36 am" To: chuckr@glue.umd.edu (Chuck Robey) Date: Mon, 31 Aug 1998 22:42:19 +1000 (EST) Cc: jb@cimlogic.com.au, freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chuck Robey wrote: > I usually have my obj directory redirected to /usr2/obj, my 2nd disk, > both because that's where room is, and because of the speed advantage > you get from having src and obj on different disks. I have been doing > this by having: > > OBJLINK= yes > MAKEOBJDIRPREFIX=/usr2/obj > > in my /etc/make.conf. I just decided to do one last aout buildworld > before doing the elf build (to see if the tree was ok first) and I began > getting these error messages: > > ===> bin/rcp > Warning: Object directory not changed from original /usr/src/bin/rcp > > I then took a look at /usr/src/Makefile, where the comments refer to > /usr/obj. Is that now hardwired in? Do I need to use softlinks to get > it on the spot I want? I did a scan with find for .depend files, didn't > find any, so was that warning bogus, maybe? The object directory gets set to ${MAKEOBJDIRPREFIX}/${OBJFORMAT} in Makefile.inc0. The upgrade sets ${MAKEOBJDIRPREFIX}/aout or ${MAKEOBJDIRPREFIX}/elf explicitly depending on which bit it is doing. It is the OBJLINK that shouldn't be used. It writes in the source directory. If you use make world or make buildworld, the object directories will be created for you based on your preferred MAKEOBJDIRPREFIX. However, you should be warned that MAKEOBJDIRPREFIX only works properly if set in the environment, not in /etc/make.conf. There are existing comments in bsd.obj.mk to this effect. The problem with putting things in /etc/make.conf is that you are overriding things that the build procedure has set for good reason. Since the settings in /etc/make.conf are absolute ( = , not ?= ), and /etc/make.conf is included near the bottom of sys.mk, they always win. 8-( -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message