X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 30 May 2008 10:34:22 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: binutils 20080523-1: version string breaks python2.5 distutils
Message-ID: <20080530143422.GB13295@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20080528.214955.28844.0@webmail21.dca.untd.com> <20080529020130.GA13665@ednor.casa.cgf.cx> <004b01c8c188$07c45700$2708a8c0@CAM.ARTIMI.COM> <20080529130157.GA736@tishler.net> <20080529164837.GB15731@ednor.casa.cgf.cx> <20080530121610.GA3996@tishler.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20080530121610.GA3996@tishler.net>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

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/

