[issue23199] libpython27.a in amd64 release is 32-bit

Steve Dower report at bugs.python.org
Sat Jan 17 21:21:03 CET 2015


Steve Dower added the comment:

So I've grabbed gendef and dlltool from the latest mingw-w64 and will look at using those in the future for both 2.7 and 3.5.

According to objdump, I can use these to create file format pe-i386 and pe-x86-64 with the same tools. Are these the correct formats for 32-bit and 64-bit respectively?

My commands are (approximately):

  gendef - python35.dll > mingwlib.def

  dlltool --dllname python35.dll --def mingwlib.def --output-lib amd64\libpython35.a -m i386:x86-64

  dlltool --dllname python35.dll --def mingwlib.def --output-lib win32\libpython35.a -m i386

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23199>
_______________________________________


More information about the Python-bugs-list mailing list