Hello everyone <br><br>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.<br><br>Long story short our solution (build agains mozilla) seem to had nothing to do with the real bug which someone posted today.
<br><br>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.
<br><br>here is the most important part of his post<br>----<br><pre id="comment_text_36">/usr/lib/python2.4/distutils/unixccompiler.py to build.<br>** /usr/lib/python2.4/distutils/unixccompiler.py fills the 'CC' executable
<br>variable by invoking /usr/lib/python2.4/distutils/sysconfig.py<br>** /usr/lib/python2.4/distutils/unixccompiler.py contains a condition that<br>says:<br>        elif compiler[:3] == &quot;gcc&quot; or compiler[:3] == &quot;g++&quot;:
<br>            return &quot;-Wl,-R&quot; + dir<br>** /usr/lib/python2.4/distutils/sysconfig.py returns the 'CC' executable<br>variable by reading from /usr/lib/python2.4/config/Makefile<br>** If your system is like many others, it will return something like
<br>'CC=i686-pc-linux-gnu-gcc -pthread', will never == &quot;gcc&quot; and so the correct<br>linker options will not be used.</pre>----<br>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&nbsp; to be able to verify it.
<br><br>his full post is at <br><a href="http://bugs.gentoo.org/show_bug.cgi?id=131527#c36">http://bugs.gentoo.org/show_bug.cgi?id=131527#c36</a><br><br>the original disutil gentoo bug:<br><a href="http://bugs.gentoo.org/show_bug.cgi?id=138647">
http://bugs.gentoo.org/show_bug.cgi?id=138647</a><br><br>the patch at sourceforce:<br><a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1254718&amp;group_id=5470&amp;atid=305470">http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1254718&amp;group_id=5470&amp;atid=305470
</a><br><br><br>thanks.