Not sure if this is needed at all tbh, but at this point I'm not changing python2.. so just try to keep things as is.
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
diff -Naur Python-2.7.9-orig/Lib/plat-generic/regen Python-2.7.9/Lib/plat-generic/regen
|
|
--- Python-2.7.9-orig/Lib/plat-generic/regen 2014-12-10 18:59:39.000000000 +0300
|
|
+++ Python-2.7.9/Lib/plat-generic/regen 2014-12-11 13:50:36.129800000 +0300
|
|
@@ -1,3 +1,7 @@
|
|
#! /bin/sh
|
|
set -v
|
|
-eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" /usr/include/netinet/in.h
|
|
+if [ -n "$1" ]; then
|
|
+ eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" ${MINGW_PREFIX}/include/stddef.h
|
|
+else
|
|
+ eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" /usr/include/netinet/in.h
|
|
+fi
|
|
diff -Naur Python-2.7.9-orig/Makefile.pre.in Python-2.7.9/Makefile.pre.in
|
|
--- Python-2.7.9-orig/Makefile.pre.in 2014-12-11 13:50:36.005000000 +0300
|
|
+++ Python-2.7.9/Makefile.pre.in 2014-12-11 13:50:36.129800000 +0300
|
|
@@ -1089,7 +1089,7 @@
|
|
else \
|
|
PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \
|
|
fi; \
|
|
- cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
|
|
+ cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen "$(CC)"
|
|
|
|
python-config: $(srcdir)/Misc/python-config.in
|
|
# Substitution happens here, as the completely-expanded BINDIR
|