www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/03/13:28:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49FDD3FF.7020007@cwilson.fastmail.fm>
Date: Sun, 03 May 2009 13:27:27 -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.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] [1.7] pl-0.10.2-1 - the Parma Polyhedra Library
References: <announce DOT 49F9A229 DOT 1070908 AT gmail DOT com> <49FBF62E DOT 3060904 AT cs DOT unipr DOT it> <49FC71B7 DOT 3030000 AT cwilson DOT fastmail DOT fm> <49FC7EF9 DOT 4050908 AT gmail DOT com> <49FCACE6 DOT 4000104 AT cwilson DOT fastmail DOT fm> <49FCE65C DOT 7040409 AT gmail DOT com> <49FCE88D DOT 6040709 AT cwilson DOT fastmail DOT fm> <49FD6393 DOT 5040801 AT gmail DOT com>
In-Reply-To: <49FD6393.5040801@gmail.com>
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

Dave Korn wrote:

>   I'm not sure.  It's the compiler that knows what it needs, which is the same
> regardless of binutils' preferences, I'm leaning toward the idea that it
> should be in the linker specs for the benefit of anyone using older binutils.

The only reason the compiler NEEDS auto-import is to link against the
shared runtime libraries, since they are not declspec(dllimport)
decorated, right?  However, if you're linking against the static
runtimes, then the compiler doesn't care, and it should be up to the user.

However, if the compiler unconditionally forces enable-auto-import in
the specs file, then the end-user has no choice (or, MIGHT have no
choice depending on the vagarious/order-of-precedence of argument parsing).

Maybe the right compromise here is for gcc-4's specs to force
enable-auto-import when linking against the shared runtimes, but to
leave it up to the default binutils behavior for static?

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

- Raw text -


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