linker SEARCH_DIR order
David O'Brien
obrien@FreeBSD.org
Mon Apr 29 12:19:00 GMT 2002
On Wed, Apr 24, 2002 at 10:08:07PM +0930, Alan Modra wrote:
> Why is the default native linker search path in this order?
> /lib /usr/lib /usr/local/lib $prefix/$target/lib
>
> Wouldn't it be more sense to be reversed, or to match gcc,
> $prefix/$target/lib /usr/local/lib /lib /usr/lib ?
I am very iffy on /usr/local/lib being anywhere but at the end of the
search list. $prefix/$target/lib does seem it should be first.
More information about the Binutils
mailing list