This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kramm
Recipients
Date 2004-10-25.16:38:33
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
A cross-compile of a Win32 Python under Linux using
MingW (www.mingw.org) didn't work, as posixmodule.c
didn't know anything about MingW.
This patch fixes the various compile errors by
introducing a new local MINGW define in posixmodule.c,
and making several #ifdefs also take that variable into
account.

After this patch is applied, it's possible to compile
python.exe on Linux with MingW by doing

 CXX=i386-mingw32msvc-g++ \
 CPP=i386-mingw32msvc-cpp \
 RANLIB=i386-mingw32msvc-ranlib \
 AR=i386-mingw32msvc-ar \
 CC="/opt/xmingw/bin/i386-mingw32msvc-gcc -DMS_WINDOWS
-DPy_WIN_WIDE_FILENAMES" \
 ./configure --host=i586-mingw32msvc 

 sed -i s/initposix/initnt/g Modules/config.c
 sed -i 's/#define HAVE_DEV_PTMX 1//g' pyconfig.h
   
 make
History
Date User Action Args
2007-08-23 15:40:21adminlinkissue1053879 messages
2007-08-23 15:40:21admincreate