Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2011 11:54:14 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        mdf@freebsd.org, freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Include file search path
Message-ID:  <BB9CDEF6-5B59-47F3-8873-78D71E39BF3E@bsdimp.com>
In-Reply-To: <4D934AF4.9080503@FreeBSD.org>
References:  <AANLkTi=BiUVnzsGg83wwWPHjnTDR=XukhJ3UK6Bd5hvF@mail.gmail.com> <4D934AF4.9080503@FreeBSD.org>

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


On Mar 30, 2011, at 9:23 AM, Dimitry Andric wrote:
> This is a rather nasty hack, though.  If we can make it work, we should
> probably try using --sysroot instead, or alternatively, -nostdinc and
> adding include dirs by hand.  The same for executable and library search
> paths, although I am not sure if there is a way to completely reset
> those with the current options.

I'm pretty sure that the origins of this hack pre-dates the -sysroot feature in gcc.  It works in -current and has for years, so nobody has cared enough to even contemplate changing it.

If you can make the sysroot feature work, that would be great, since that would allow us to skip the compiler building phase if we were building using external compilers.  I have some patches to make that work, but this very problem is what I'd worked my way up to.  It works well if you are building current on current, but not so well if you are mixing versions (you can mix architectures if you are using the xdev feature I put in a while ago, but even that has one or two niggles I need to iron out).

Warner



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BB9CDEF6-5B59-47F3-8873-78D71E39BF3E>