[Patches] [ python-Patches-1053879 ] mingw compile
SourceForge.net
noreply at sourceforge.net
Sun Oct 31 10:11:11 CET 2004
Patches item #1053879, was opened at 2004-10-25 18:38
Message generated for change (Comment added) made by kramm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1053879&group_id=5470
Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Kramm (kramm)
Assigned to: Nobody/Anonymous (nobody)
Summary: mingw compile
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Matthias Kramm (kramm)
Date: 2004-10-31 10:11
Message:
Logged In: YES
user_id=1146139
Ok, I've attached the full posixmodule.c.
It's based on the lastest CVS version (2.329, from 2004/10/13).
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2004-10-31 06:40
Message:
Logged In: YES
user_id=80475
Please attach a new posixmodule.c instead of the diff file.
For some reason, my patch tool thinks the formatting is
malformed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1053879&group_id=5470
More information about the Patches
mailing list