This is the mail archive of the
mailing list for the Cygwin project.
Re: libtool: make install DESTDIR + dependent shared libraries =relink problem
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- To: "Steve M. Robbins" <steven dot robbins at videotron dot ca>
- Cc: cygwin at cygwin dot com, libtool at gnu dot org
- Date: Thu, 08 May 2003 23:36:29 -0400
- Subject: Re: libtool: make install DESTDIR + dependent shared libraries =relink problem
- References: <3EB9FD23.firstname.lastname@example.org> <20030508130220.GA27065@nyongwa.montreal.qc.ca>
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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html