Default linker library search paths

Daniel Jacobowitz drow@false.org
Tue Sep 29 19:29:00 GMT 2009


On Mon, Sep 28, 2009 at 04:00:15PM -0700, Michael Morrell wrote:
> When I run "ld --verbose" with this linker, and grep for SEARCH_DIR, I
> get:
> 
> SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
> 
> So, it looks like it will search the host in places that make sense for
> a native linker, but not a cross linker.

No, the "=" means these directories will be searched inside a target
sysroot, relocatable with the --sysroot option.  How was your linker configured?

> Do you know if it checks the
> architecture at all?

Yes.  Do you have evidence of some problem?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list