[Top][All Lists]

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

Re: libtool: make install DESTDIR + dependent shared libraries = relink

From: Charles Wilson
Subject: Re: libtool: make install DESTDIR + dependent shared libraries = relink problem
Date: Thu, 08 May 2003 23:36:29 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401

Steve M. Robbins wrote:
On Thu, May 08, 2003 at 02:45:55AM -0400, Charles Wilson wrote:

When using 'make install DESTDIR' to build an installable package (cygwin tarballs, linux rpm's, etc), dependent libraries get relinked against 'old' versions in <prefix> and not against the 'new' version in <destdir>/<prefix>. See attached testcase, and problem description below.

What version of libtool are you using?


DESTDIR installs with interdependent libraries has been a problem
for years with libtool 1.4 and patches have been floating about.
I was under the impression that it had been fixed for libtool 1.5.
Is that not true?

It's *sortof* true. Current behavior is much better than before. The old behavior messed up even during the normal build phase IIRC -- which necessary messed up 'make install' (no DESTDIR) too.

Plus, if you DIDN'T have the 'old' version installed, then 'make install DESTDIR' would fail completely during relink -- because it'd try to link exclusively against (e.g.) /usr/lib and NOT <inst>/usr/lib at all.

Now, 'make' and 'make install' Do The Right Thing in 1.5. Even 'make install DESTDIR' works when the old version (of the dependee library) is not installed. The only problem is 'make install DESTDIR=....' with pre-existing installation of the old dependee lib.

That's an improvement, certainly -- but it ain't perfect. Hopefully the test case will help in the future to work out this last remaining wrinkle.


reply via email to

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