From owner-freebsd-arch Sun Mar 11 7: 3: 8 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 8691137B718 for ; Sun, 11 Mar 2001 07:03:04 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id CAA08272; Mon, 12 Mar 2001 02:03:02 +1100 Date: Mon, 12 Mar 2001 02:02:25 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: arch@FreeBSD.ORG Cc: Warner Losh Subject: Re: Breaking up make.conf In-Reply-To: <20010310170844.C36413@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 10 Mar 2001, David O'Brien wrote: > On Thu, Mar 08, 2001 at 09:49:30PM -0700, Warner Losh wrote: > > Also, the previous patches don't include bsd.own.mk, which we depend > > on being included to define OBJFORMAT. So I backed that part of them > > out. > > Rather than all this funk, why not do what the Ports Collection does -- > have its own bsd.*.mk file. So make it that /usr/share/bsd.*.mk all > include /etc/world-make.conf, and sys.mk does not. Thus if I am just > using BSD make, but not all its bsd.*.mk frame work, I won't get bogus > CFLAGS settings. > > I.E., lets assume /usr/share/mk/bsd.*.mk is the domain of /usr/src only. The main reason is that make.conf often needs to be included before parsing Makefiles, or at least at the start of Makefiles, but most Makefiles include bsd.*.mk last. The ports .mk files configure paths much better than sys.mk. They use ${PORTSDIR} but sys.mk hard-codes 3 absolute paths in /etc. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message