X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 	tests=AWL,BAYES_00,SARE_OBFU_PART_INA,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A6ED9D1.8020205@gmail.com>
Date: Tue, 28 Jul 2009 11:58:25 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How to install-libLTLIBRARIES dll to bin?
References: <6910a60907272310q54f29289l454117aff82afd5a@mail.gmail.com> <4A6EAB22.7080200@lysator.liu.se>
In-Reply-To: <4A6EAB22.7080200@lysator.liu.se>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Peter Rosin wrote:
> Automake does not "know" that it is a dll, it only sees a libtool
> library (.la), and I think "libtool --mode=install" is supposed to
> outsmart $libdir, by adding ../bin to the end of the directory
> part of the path (i.e. copy the dll to $DESTDIR)$(libdir)/../bin
> in this case).

  Yes, absolutely.  Grep for 'tdlname' in the libtool script.

> 
> I.e. if the dll does not end up in $libdir/../bin you need to find
> out why, perhaps because the dll was linked with
> "libtool ... -module ..." (in which case the outsmarting code
> isn't activated and ../bin isn't added).

  The problem is that $libdir/../bin is very often not the same at all as $bindir.

  For example in GCC, libdir is $prefix/lib/gcc-lib/i686-pc-cygwin/4.3.2, and
the DLLs all get installed into $prefix/lib/gcc-lib/i686-pc-cygwin/bin, which
is not useful.

    cheers,
      DaveK


--
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

