This is the mail archive of the binutils@sourceware.org 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 to build a cross-ld that behaves like a native ld?


On Fri, Jan 27, 2006 at 04:28:41PM -0500, Jon Ringle wrote:
> On Friday 27 January 2006 04:06 pm, Daniel Jacobowitz wrote:
> > On Fri, Jan 27, 2006 at 04:02:44PM -0500, Jon Ringle wrote:
> > > Hello,
> > >
> > > I'm building a cross toolchain for use inside scratchbox
> > > (http://scratchbox.org). One thing that scratchbox does is go to great
> > > pains to make your cross toolchain looks and acts like a native
> > > toolchain. One thing that they did in previous versions of binutils is to
> > > patch ld/genscripts.sh so that NATIVE=yes. This approach doesn't seem to
> > > work with binutils-2.16.1.
> > >
> > > Can I get any advice as to how I can generate a cross ld that acts like a
> > > native ld in terms of how it searches for libraries.
> >
> > Use --with-sysroot.
> 
> binutils was built with --with-sysroot but it still doesn't work. I need ld to 
> search /lib and /usr/lib like a native ld would do.

What the heck are you trying to do?  If you want it to use the host
libraries, use --with-sysroot=/, but that generally defeats the point
of a cross linker.

-- 
Daniel Jacobowitz
CodeSourcery


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