[svlug] modify default directory search order for GCC
Fabrizio Bertocci
fabriziobertocci at gmail.com
Tue Aug 8 14:02:01 PDT 2006
> i read man ld before, and it does say that LD_LIBRARY_PATH is before /lib
> and /usr/lib, however,
> if it already has /usr/lib/libz.so from ldd output, it should pick up that
> first, am i right?
>
I think I got the problem: ldd is not just looking at libz.so, but is
looking also at a particular library version.
So, for the example you sent, at first I only copied libz.so (cp
/usr/lib/libz.so .) in my local directory, and after setting LD_LIBRARY_PATH
to my local dir, ldd still reported libz from /usr/lib.
Then I copied ALL the files (cp -a /usr/lib/libz.so.* .), including the
symlinks. After this ldd correctly reported libz from my local dir.
Fabrizio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kenny.linuxmafia.com/pipermail/svlug/attachments/20060808/fdadbd32/attachment.htm
More information about the Svlug
mailing list