[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH] change order of -L options when relinking
From: |
Howard Chu |
Subject: |
RE: [PATCH] change order of -L options when relinking |
Date: |
Fri, 31 Oct 2003 13:35:12 -0800 |
Surely the patch description below is in the wrong order; using
"-L/usr/lib -L/tmp/usr/lib" is the current incorrect behavior. Yes? -L search
paths are used left-to-right.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> Behalf Of
> Charles Wilson
> Sent: Friday, October 31, 2003 10:57 AM
> To: Scott James Remnant
> Cc: Libtool Patches
> Subject: Re: [PATCH] change order of -L options when relinking
>
>
> Hallelujah! This fixes the problem demonstrated by the testcase here:
> http://mail.gnu.org/archive/html/libtool/2003-05/msg00022.html
>
> --
> Chuck
>
>
> Scott James Remnant wrote:
> > Libtool currently supplies "-L/tmp/usr/lib -L/usr/lib -lfoo" to the
> > linker, which means the linker will actually pick up
> /usr/lib/libfoo.so
> > -- the OLDER version of the shared library. If this library has
> > different dependencies, things can go very wrong indeed.
> >
> > The patch changes the order to "-L/usr/lib -L/tmp/usr/lib -lfoo"
> > instead, which causes /tmp/usr/lib/libfoo.so to be picked
> up, the right
> > version.