delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/30/10:34:47

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 30 May 2008 10:34:22 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: binutils 20080523-1: version string breaks python2.5 distutils
Message-ID: <20080530143422.GB13295@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20080528 DOT 214955 DOT 28844 DOT 0 AT webmail21 DOT dca DOT untd DOT com> <20080529020130 DOT GA13665 AT ednor DOT casa DOT cgf DOT cx> <004b01c8c188$07c45700$2708a8c0 AT CAM DOT ARTIMI DOT COM> <20080529130157 DOT GA736 AT tishler DOT net> <20080529164837 DOT GB15731 AT ednor DOT casa DOT cgf DOT cx> <20080530121610 DOT GA3996 AT tishler DOT net>
MIME-Version: 1.0
In-Reply-To: <20080530121610.GA3996@tishler.net>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Fri, May 30, 2008 at 08:16:10AM -0400, Jason Tishler wrote:
>On Thu, May 29, 2008 at 12:48:38PM -0400, Christopher Faylor wrote:
>> Why is python even checking the version?
>
>Python (i.e., Distutils) is checking versions so that it calls the
>appropriate driver and supplies the appropriate options.  For example,
>in cygwinccompiler.py we have the following:
>
>    # ld_version >= "2.10.90" and < "2.13" should also be able to use
>    # gcc -mdll instead of dllwrap
>    # Older dllwraps had own version numbers, newer ones use the
>    # same as the rest of binutils ( also ld )
>    # dllwrap 2.10.90 is buggy
>    if self.ld_version >= "2.10.90":
>        self.linker_dll = "gcc"
>    else:
>        self.linker_dll = "dllwrap"
>            
>    # ld_version >= "2.13" support -shared so use it instead of
>    # -mdll -static
>    if self.ld_version >= "2.13":
>        shared_option = "-shared"
>    else:
>        shared_option = "-mdll -static"
>
>> That seems very fragile to me.
>
>Agreed, but this stuff predates me (i.e., before 2000), so I loathe to
>touch it... :,)

Aw, come on, Jason.  Touch it!  Destroy it!  Fix it!

But, seriously, could you get the same behavior by parsing the ld --help
output?

cgf

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