delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/09/13:58:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_62,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A7F0E31.3060001@users.sourceforge.net>
Date: Sun, 09 Aug 2009 12:58:09 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: libtool: -{shared,static}-libgcc
References: <4A7E7628 DOT 10105 AT users DOT sourceforge DOT net> <4A7ED4AA DOT 60009 AT cwilson DOT fastmail DOT fm>
In-Reply-To: <4A7ED4AA.60009@cwilson.fastmail.fm>
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 09/08/2009 08:52, Charles Wilson wrote:
> It just can't be that simple, can it? Well, for *libgcc* I guess it can,
> because there is no libgcc.la.  However, we also need similar
> functionality for the other runtime libraries, but they DO have .la
> files which throws a monkey wrench into the mix.

Wouldn't those be governed by -static like any other library?

> Oh, I just thought of something.  The user would need to ensure that
> when libtool is generated (e.g. during configure), LDFLAGS includes the
> intended -{shared,static}-libgcc flag. Otherwise, libtool's *_postdeps
> variable will not include the "correct" list of libraries.  But then,
> what happens if you use a different -{static,shared}-libgcc at actual
> linktime? Or if you link some targets one way, and other targets the
> other way?

AFAICS $postdeps is only used for CXX, which uses -nostdlib at the same 
time, so AFAIK neither -{shared,static}-libgcc would have any affect at 
that point.

But that would mean that, as you suspect, you have to decide CXX libgcc 
linkage at configure time.  That is an issue which this patch neither 
causes nor fixes.

> P.S. Have you gotten an acknowledgment from the FSF that they have
> received your completed paperwork?

Yes.


Yaakov

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