i ran into a problem while working on a shared libaray and trying to compile some programs without explicit linking of the lib dependencies. the problem was that while ld.so / ldd would pick up the lib that was in /usr/local/lib (as configured in /etc/ld.so.conf); ld would try to link to the on in /usr/lib.
checking in the man pages, indeed ld and ld.so search for libraries in a diffrent order. imho this is broken and ld should check /etc/ld.so.conf before checking in /usr/lib and /lib man ld.so lists the order to look for libs as: LD_LIBRARY_PATH /etc/ld.so.cache /usr/lib /lib while 'man ld' lists: LD_LIBRARY_PATH The default directories, normally /lib and /usr/lib. /etc/ld.so.conf -- Summary: ld vs. ld.so Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: j at bootlab dot org CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=2589 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils