Subject: Re: Build identifier variable for obj dirs
To: NetBSD Toolchain Technical Discussion List <tech-toolchain@NetBSD.ORG>
From: Todd Vierling <>
List: tech-toolchain
Date: 03/05/2002 16:16:58
On Tue, 5 Mar 2002, Greg A. Woods wrote:

: > The following patch adds a BUILDID variable to the build system
: > which can be used to, you guessed it, identify specific builds.
: >
: > Mostly, it affects the objdir name, such that you end up with
: > objdir names like "obj.${MACHINE}.${BUILDID}".
: Hmmm....  a weird hack on top of a bad hack.  Does that make it anything
: more than another bad hack?  Why do you want multiple objdir names?

Multiple builds with different characteristics.

===== mk.conf =====
.if defined(BUILDID)
.if ${BUILDID} == "ppro"
COPTS+=		-mpentiumpro -O3 -fomit-frame-pointer
.elif ${BUILDID} == "sfloat"
SOFTFLOAT=	# defined
===== mk.conf =====

etc.  Lets you create multiple builds from one tree with the same $MACHINE
but different compile-time aspects.

-- Todd Vierling <>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support --