Subject: Re: tooldir naming confusion
To: Louis Guillaume <lguillaume@berklee.edu>
From: Quentin Garnier <netbsd-current-users@quatriemek.com>
List: current-users
Date: 09/07/2003 08:59:44
Le Sat, 06 Sep 2003 23:45:29 -0400
Louis  Guillaume a ecrit :
[...]
> Now the 1.6Y tools are in a directory called "tooldir.NetBSD-1.6W-1386".
> 
> Odd, I think.
[...]
> Wouldn't it be better for the default tooldir to be named without the 
> current release number? Perhaps just the architecture would be enough, 
> that way cross-compiles will automatically get their own toolchain 
> directory.
> 
> Is there something that I'm missing?

The toolchain built by build.sh is a cross-compiling toolchain. The target
for it is easily identified: it's the source tree build.sh is in, plus the
-m flag of the command-line.

The host has to be correctly identified, because the toolchain may not
work with another host/target combination.

You're confused because you're compiling on the same system you're
installing, but imagine you ./build.sh distribution on Linux/i386 or
NetBSD/sparc64. You won't be able to use the toolchain compiled at that
time to install it on NetBSD/i386. Thus it *has* to be identified by the
host.

In the case of a -current upgrade of one letter, it can seem overdoing,
but it's the default, safe, behaviour.

Personnaly, I always set -T.

-- 
Quentin Garnier - cube@cubidou.net
"Feels like I'm fiddling while Rome is burning down.
Should I lay my fiddle down and take a rifle from the ground ?"
Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.