This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: libtool: make install DESTDIR + dependent shared libraries =relink problem


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?

1.5


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.

--Chuck


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


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