This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Updates to --with-sysroot support
On Mon, Nov 04, 2002 at 01:26:46PM -0500, Hans-Peter Nilsson wrote:
> On Mon, 4 Nov 2002, Daniel Jacobowitz wrote:
> > - No longer defines PREFIX_INCLUDE_DIR for a sysrooted compiler. This
> > one's a little more arguable but I think it's appropriate. The sysrooted
> > compiler should work like a system compiler inside of $sysroot; searching
> > $prefix/include defeats that.
> > I need this in my local setups but I won't be heartbroken if it's
> > considered wrong for the FSF tree :)
>
> I think it's right, because I want it! FWIW.
I'd even extend it to say that cross compilers should not search
$prefix/include... I don't know if there's a general convention about
this (BFD recently changed its behavior here, although I don't really
like the new behavior either) but I've always thought that since
$prefix/include and $prefix/bin and $prefix/lib are siblings,
$$prefix/include should be headers for the versions of things in
$prefix/lib. Target headers belong in $prefix/$target_alias/include.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer