Subject: Re: Proposed improvements to toolchain2netbsd and config.guess
To: Frederick Bruckman <>
From: Todd Vierling <>
List: tech-toolchain
Date: 02/14/2002 10:30:52
On Thu, 14 Feb 2002, Frederick Bruckman wrote:

: "host" from "config.guess" gets embedded into config.cache, for
: subsequent runs, but that doesn't help if it gets it wrong in the first
: place. The "unknown" does get placed into the files on a virgin run.

The new version, mknative, forcibly overrides the host with a --host=

: Where is value to "--host" supposed to come from? To try to get it from
: is really awkward (see my broken submission to PR 15514); it
: would be easier to simply elide the vendor and version number in
: toolchain2netbsd directly.

In mknative, the host value comes from ${MACHINE_GNU_PLATFORM} in a valid
$TOOLDIR toolchain build.  This is extracted by going through "make" first,
which knows how to identify the target platform.

: > (We use --host explicitly, since our ${MACHINE_GNU_PLATFORM} omits the OS
: > version number, and the omission of the vendor field is simply a convenience
: > in that case.)
: I see. Then "pkgsrc" on current is really messed up:

No, pkgsrc is correct.  It sets the GNU platform name to omit the version
number, just as I said above, and omits "unknown" as a convenience.

: The a.out build, on ports that haven't switched yet, doesn't use any of
: the same files? Won't matter soon, hopefully.

Correct.  a.out uses the old toolchain.

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