[Distutils] a patch for distutils + gcc + linux, that was never apply, yet will solve many problems.
ronaldoussoren at mac.com
Tue Jul 11 17:42:12 CEST 2006
On Jul 11, 2006, at 5:17 PM, Jorge Vargas wrote:
> noone cares about this? it's a bug so simple to fix....
There's loads of bugs and patches in the python tracker, and only a
limited amount of time that people work on python. The patch you
mentioned also sounds like a fix for a very limited audience, which
could explain why nobody has seriously looked at it yet.
Are there systems other then gentoo that don't use gcc and g++ but
some seemingly cross-compiling setup?
> On 6/30/06, Jorge Vargas <jorge.vargas at gmail.com> wrote:
> Hello everyone
> I did a package for gentoo (ebuild) a while ago and it has a C/C++
> extension, to compile agains a gecko-compliant mozilla product.
> Long story short our solution (build agains mozilla) seem to had
> nothing to do with the real bug which someone posted today.
> It seems there is a bug in distutils itself, because it is passing
> the wrong arguments to g++, the most incredible part is that the
> bug is so simple to fix yet there is no reply, maybe this got lost
> in the main python repository.
> here is the most important part of his post
> /usr/lib/python2.4/distutils/unixccompiler.py to build.
> ** /usr/lib/python2.4/distutils/unixccompiler.py fills the 'CC'
> variable by invoking /usr/lib/python2.4/distutils/sysconfig.py
> ** /usr/lib/python2.4/distutils/unixccompiler.py contains a
> condition that
> elif compiler[:3] == "gcc" or compiler[:3] == "g++":
> return "-Wl,-R" + dir
> ** /usr/lib/python2.4/distutils/sysconfig.py returns the 'CC'
> variable by reading from /usr/lib/python2.4/config/Makefile
> ** If your system is like many others, it will return something like
> 'CC=i686-pc-linux-gnu-gcc -pthread', will never == "gcc" and so the
> linker options will not be used.----
> if anyone could please verify it and maybe find out why it wasn't
> apply, honestly I have very little knowlegde of C and it's
> integration with python to be able to verify it.
> his full post is at
> the original disutil gentoo bug:
> the patch at sourceforce:
> Distutils-SIG maillist - Distutils-SIG at python.org
More information about the Distutils-SIG