This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
linker SEARCH_DIR order
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Wed, 24 Apr 2002 22:08:07 +0930
- Subject: linker SEARCH_DIR order
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 ?
The idea being that $prefix/$target/lib has anything that's
particularly target dependent, and /usr/local is the place
where new tools and libs are installed, so should override
/lib and /usr/lib. Comments?
--
Alan Modra
IBM OzLabs - Linux Technology Centre