New submission from Fabian Groffen <grob...@gentoo.org>:

configure.in contains a check for the compiler in use for Darwin like this:

gcc_version=`gcc -v 2>&1 |  grep version | cut -d\  -f3`

This yields in a wrong answer if the output of gcc -v has "version" in another 
place as well, such as when --enable-version-specific-runtime-libs is enabled.  
A better way to retrieve the compiler version is to use GCC's -dumpversion 
argument, which works with Apple's GCC 3.3, 4.0.1 and 4.2.1 and doesn't need 
additional grepping/cutting, etc.

The attached patch uses -dumpversion to retrieve the GCC version, which allows 
a successful configure run.

----------
components: Build
files: python-2.5.1-darwin-gcc-version.patch
keywords: patch
messages: 97883
nosy: grobian
severity: normal
status: open
title: configure GCC version detection fix for Darwin
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: 
http://bugs.python.org/file15911/python-2.5.1-darwin-gcc-version.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7714>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to