delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/26/15:27:06

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4E80D1F5.60301@cwilson.fastmail.fm>
Date: Mon, 26 Sep 2011 15:26:45 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Reply-To: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Bogus dependencies in libtool .la files for libgtk2.0-devel-2.20.1-1, libpango1.0-devel-1.28.1-1
References: <4E7F400F DOT 8060004 AT gmail DOT com> <j5nie3$15s$1 AT dough DOT gmane DOT org> <4E7F5032 DOT 8060202 AT gmail DOT com> <j5np3e$9uh$1 AT dough DOT gmane DOT org> <4E7F70FC DOT 5090501 AT gmail DOT com> <1317063821 DOT 4184 DOT 15 DOT camel AT YAAKOV04>
In-Reply-To: <1317063821.4184.15.camel@YAAKOV04>
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

On 9/26/2011 3:03 PM, Yaakov (Cygwin/X) wrote:
> On Sun, 2011-09-25 at 19:20 +0100, Dave Korn wrote:
>> On 25/09/2011 18:41, jojelino wrote:
>>
>>> The problem is from pango/opentype/libharfbuzz.la
>>> It has .cc source and recognized as needed c++ source file although it
>>> is c source. and cc source is compiled with --tag=CXX
>>> we should teach libtool cc is c source file.
>>
>>   Or upstream should add an explicit --tag=CC, or rename the file extension.
>> Good catch, that certainly ties in with what that link I found was saying.
> 
> The .cc file is a C++ source file.

IMO, the real problem here is libtool's insistence on linking with ld,
rather than using the language driver to link.  This is what causes
libtool to try to determine the pre/post dep libraries and objects that
the driver would implicitly use, and to list them in .la files.

There's general support on the libtool list for modifying libtool
behavior, at least for CC=gcc and LD=gnu ld, to change this behavior so
that pre/post deps are no longer computed, and the language driver is
used to link.  That is a major behavioral change, and would require a
lot of review and platform testing.  So far nobody -- including me --
has had time to pursue it.

If somebody is looking for a project...

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