This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How does --with-sysroot work?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org, binutils at sources dot redhat dot com
- Date: Thu, 14 Aug 2003 14:18:46 -0400
- Subject: Re: How does --with-sysroot work?
- References: <20030814181550.GA6933@lucon.org>
On Thu, Aug 14, 2003 at 11:15:50AM -0700, H. J. Lu wrote:
> I tried --with-sysroot. But it doesn't work right for me if I run
> gcc/ld in the build directory. The problem is both gcc/ld will change
> sysroot to $(target_alias) under the build directory. But it is not
> the sysroot at all. I will see what I can do.
Please be more precise with how you configured. That's not enough
information to say anything.
The sysroot, at least for GCC, is relocated at runtime iff it is a
subdirectory of $exec_prefix and it exists. Using
$exec_prefix/$target_alias is not a good choice. Then the compiler
will look for $target_alias/usr/include, not $target_alias/include.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer