How to build a cross-ld that behaves like a native ld?

Jon Ringle jringle@vertical.com
Fri Jan 27 21:31:00 GMT 2006


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.

Jon



More information about the Binutils mailing list