delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/08/23:38:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3EBB223D.7020705@ece.gatech.edu>
Date: Thu, 08 May 2003 23:36:29 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Steve M. Robbins" <steven DOT robbins AT videotron DOT ca>
CC: cygwin AT cygwin DOT com, libtool AT gnu DOT org
Subject: Re: libtool: make install DESTDIR + dependent shared libraries =
relink problem
References: <3EB9FD23 DOT 1050704 AT ece DOT gatech DOT edu> <20030508130220 DOT GA27065 AT nyongwa DOT montreal DOT qc DOT ca>
In-Reply-To: <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?

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019