This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How does --with-sysroot work?


On Thu, Aug 14, 2003 at 02:18:46PM -0400, Daniel Jacobowitz wrote:
> 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.
> 

I used --with-sysroot=$exec_prefix/$target_alias. It can't work. I
believe configure/Makefile should reject this setting.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]