Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2011 17:45:42 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Nathan Whitehorn <nwhitehorn@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Include file search path
Message-ID:  <4D935026.7010105@FreeBSD.org>
In-Reply-To: <4D934BB7.9080201@freebsd.org>
References:  <AANLkTi=BiUVnzsGg83wwWPHjnTDR=XukhJ3UK6Bd5hvF@mail.gmail.com>	<4D934AF4.9080503@FreeBSD.org> <4D934BB7.9080201@freebsd.org>

index | next in thread | previous in thread | raw e-mail

On 2011-03-30 17:26, Nathan Whitehorn wrote:
...
>> During the bootstrap stage, a copy of gcc (or clang) is built, that has
>> all default search paths for headers, libraries, etc, set relative to
>> ${WORLDTMP}, usually /usr/obj/usr/src/tmp.
...
> Since you need to build two compilers anyway (one for the current
> system, to build the new one, and one to live in the new one, linked
> against new libraries), I don't see that it's such a nasty hack.

The building itself is not a problem, of course, and it is even required
if you want to update anything in the toolchain itself.

However, we have added some custom #ifdef FREEBSD_NATIVE parts to
support this feature, so you cannot use stock gcc source to build such a
temporary compiler.  This can be problematic if we ever want to be able
to use toolchains outside of the source tree.


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D935026.7010105>