Antoine Pitrou pit...@free.fr added the comment:
It turns out, quite expectedly, that distutils doesn't reuse the various
LDFLAGS recorded by sysconfig (why are there three of them?), but instead only
uses LDSHARED:
sysconfig.get_config_var('LDSHARED')
'gcc -pthread -shared'
Antoine Pitrou pit...@free.fr added the comment:
Following patch works here. I've added XXX tags in strange places.
--
keywords: +patch
Added file: http://bugs.python.org/file18598/m32.patch
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Ok, there is also a failure in test_sysconfig (the patch makes no difference):
==
FAIL: test_ldshared_value (test.test_sysconfig.TestSysConfig)
Antoine Pitrou pit...@free.fr added the comment:
It appears that 2.7 has the same issue, although fewer tests fail (apparently
not all 3.2 tests have been backported).
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
New submission from Antoine Pitrou pit...@free.fr:
When I use the following configuration (in order to build a 32-bit Python a
64-bit OS):
./configure --with-computed-gotos CFLAGS=-m32 LDFLAGS=-m32
I then get two failures in test_distutils:
test_build_ext