OS/2 EMX build updates for recent CVS changes
diff --git a/PC/os2emx/Makefile b/PC/os2emx/Makefile
index 3bf4fc2..10dc9bd 100644
--- a/PC/os2emx/Makefile
+++ b/PC/os2emx/Makefile
@@ -393,6 +393,7 @@
cStringI \
_hotshot \
imageop \
+ itertool \
md5 \
operator \
pcre \
@@ -531,6 +532,13 @@
imageop$(MODULE.EXT): $(OUT)imageop$O $(OUT)imageop_m.def $(PYTHON.IMPLIB)
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
+# itertools needs to be renamed to be useful
+itertools$(MODULE.EXT): $(OUT)itertoolsmodule$O $(OUT)itertools_m.def $(PYTHON.IMPLIB)
+ $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
+
+itertool$(MODULE.EXT): itertools$(MODULE.EXT)
+ cp $^ $@
+
md5$(MODULE.EXT): $(OUT)md5module$O $(OUT)md5c$O $(OUT)md5_m.def $(PYTHON.IMPLIB)
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
diff --git a/PC/os2emx/python23.def b/PC/os2emx/python23.def
index 0acaea0..f6c507a 100644
--- a/PC/os2emx/python23.def
+++ b/PC/os2emx/python23.def
@@ -298,6 +298,7 @@
"PyFunction_New"
"PyFunction_GetCode"
"PyFunction_GetGlobals"
+ "PyFunction_GetModule"
"PyFunction_GetDefaults"
"PyFunction_SetDefaults"
"PyFunction_GetClosure"
@@ -347,6 +348,8 @@
"PyLong_FromDouble"
"PyLong_AsLong"
"PyLong_AsUnsignedLong"
+ "_PyLong_Sign"
+ "_PyLong_NumBits"
"_PyLong_FromByteArray"
"_PyLong_AsByteArray"
"_PyLong_AsScaledDouble"
@@ -362,7 +365,7 @@
"PyLong_Type"
; From python23_s.lib(methodobject)
- "PyCFunction_New"
+ "PyCFunction_NewEx"
"PyCFunction_GetFunction"
"PyCFunction_GetSelf"
"PyCFunction_GetFlags"
@@ -370,6 +373,7 @@
"Py_FindMethodInChain"
"Py_FindMethod"
"PyCFunction_Fini"
+ "PyCFunction_New"
"PyCFunction_Type"
; From python23_s.lib(moduleobject)
@@ -387,9 +391,9 @@
"_PyObject_New"
"_PyObject_NewVar"
"_PyObject_Del"
- "PyObject_Print"
"PyObject_Str"
"PyObject_Repr"
+ "PyObject_Print"
"_PyObject_Dump"
"PyObject_Unicode"
"PyObject_GetAttr"
@@ -666,6 +670,7 @@
"_PyExc_Fini"
; From python23_s.lib(ceval)
+ "PyEval_GetCallStats"
"PyEval_InitThreads"
"PyEval_AcquireLock"
"PyEval_ReleaseLock"