Matthias Klose <d...@debian.org> added the comment:

using sys.maxsize isn't safe for cross builds. it should at least guarded by 
'if not cross_compiling'.

I still think that the preferred way to get the library dirs is to ask the 
compiler (patch attached), however this will add "incompatible" library dirs as 
well, at least for multilib'd gcc builds, and leading to linker warnings when 
building the extensions. At least when using gcc this should address the issue 
finding the lib32 and libx32 dirs.

----------
Added file: http://bugs.python.org/file26313/setup.diff

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

Reply via email to