[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: should libtool --relink expand lib*.la files before -L options?

From: Ralf Wildenhues
Subject: Re: should libtool --relink expand lib*.la files before -L options?
Date: Thu, 12 Jun 2008 23:32:29 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* Mark Wright wrote on Thu, Jun 12, 2008 at 06:06:58PM CEST:
> Ralf Wildenhues <address@hidden> wrote:
> > While link mode will try to use the uninstalled libraries throughout
> > (so you don't pick up an old, previously installed one), relink mode
> > will try to use the installed versions of the other just-built
> > libraries.
> Yes it does, however it finds an old library in LDFLAGS before the
> installed one in:
> -L/h/goanna/2/eng/dev/autotools/t/pkgbuild/opt/foss/lib

That's the sort of conflict that is just impossible to resolve.
For your specific case, the path to the newly installed library
should go early, for other users it shouldn't (because they have
other, unrelated libraries in both the newly installed path and
some other path listed early).

Sorry, you can't have that sort of flexibility portably.
If you need other libraries from that path where the old,
unwanted one lives, make symlinks to them in some new directory.

Generally, if you want to have several versions of some library at the
same time, put them in distinct $prefix'es, apart from other libraries.
That helps to minimize such conflicts.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]