Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3EBB223D.7020705@ece.gatech.edu>
Date: Thu, 08 May 2003 23:36:29 -0400
From: Charles Wilson <cwilson@ece.gatech.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.robbins@videotron.ca>
CC: cygwin@cygwin.com, libtool@gnu.org
Subject: Re: libtool: make install DESTDIR + dependent shared libraries =
 relink problem
References: <3EB9FD23.1050704@ece.gatech.edu> <20030508130220.GA27065@nyongwa.montreal.qc.ca>
In-Reply-To: <20030508130220.GA27065@nyongwa.montreal.qc.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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/

