This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
`ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'
- From: PK <nyvsld at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Sun, 23 Oct 2005 18:52:23 +0800
- Subject: `ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'
hi,
i'm building some package on a debian testing system, the tools are listed here:
/usr/local/bin/gcc-4.0.1 (compiled from source)
/usr/bin/ld (system default)
my question is : `ld' keep using old libraries found in `/usr/lib',
although there are new ones in `/usr/local/lib',
for example, `ld -verbose' showes this:
``
libgnomeui-2.so.0 needed by /usr/local/lib/libpanel-applet-2.so
found libgnomeui-2.so.0 at /usr/bin/../lib/libgnomeui-2.so.0
''
and i can find in `/etc/ld.so.cache':
``
libgnomeui-2.so.0
/usr/local/lib/libgnomeui-2.so.0
libgnomeui-2.so.0
/usr/lib/libgnomeui-2.so.0
''
doesn't this say that `ld' should use
`/usr/local/lib/libgnomeui-2.so.0' for linking?
`/etc/ld.so.conf' contains :
``
/usr/local/lib
/usr/X11R6/lib
''