delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/09/09:49:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A7ED3C9.70700@cwilson.fastmail.fm>
Date: Sun, 09 Aug 2009 09:48:57 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How to install-libLTLIBRARIES dll to bin?
References: <6910a60907272310q54f29289l454117aff82afd5a AT mail DOT gmail DOT com> <4A6ED94B DOT 8020003 AT gmail DOT com> <4A7E725C DOT 8010706 AT users DOT sourceforge DOT net>
In-Reply-To: <4A7E725C.8010706@users.sourceforge.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Yaakov (Cygwin/X) wrote:
> On 28/07/2009 05:56, Dave Korn wrote:
>>    Yeh, me too.  I have a horrible hack in the distro gcc that ascends
>> directories until it finds ...../lib/ and replaces that with ..../bin/
> 
> I'm not sure how you did it, so I just made the attached patch to do
> just that.  It's a bit of a hack but I don't think it's so horrible.
> Chuck, what do you think?

Your patch does basically what Dave's horrible hack did, except his also
works if you're installing somewhere other than under THE libdir. His
patch "walks" up the directory tree from the .la file location, until it
finds a great-uncle ../../../bin directory.

> 
>> add a --bindir= option to libtool

This part is not messy

>> and modify automake or
>> libtoolise to
>> ensure it gets passed by the makefiles when they invoke libtool.
> 
> It might be more correct, but implementing this would be *VERY* messy.
> Trust me.  The first solution would be much, much easier.

This part is messy -- and unnecessary for the intended use case. In gcc,
all you need to do is explicitly modify the Makefile.am's to pass the
necessary option. You don't need to do anything to automake or
libtoolize, AFAICT.

Which brings me to my question: Yaakov, what is the use case you have
for this functionality?  Something other than gcc?

--
Chuck

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

- Raw text -


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