This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: `ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'


`ld -v /path/to/many/file.o' no special options used, ( /usr/bin/ld, v2.16 )
after that i installed a new build of ld( /usr/local/bin/ld, v2.16 ),
and the error didn't come out again.


On 10/23/05, H. J. Lu <hjl@lucon.org> wrote:
> On Sun, Oct 23, 2005 at 06:52:23PM +0800, PK wrote:
> > 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?
> >
>
> What is the command line passed to ld?
>
>
> H.J.
>


--
all born, to be dying


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]