1
diff -r c97447e36665 Lib/plat-generic/regen
2
--- a/Lib/plat-generic/regen Fri Jan 25 13:19:35 2013 +0100
3
+++ b/Lib/plat-generic/regen Fri Jan 25 13:36:51 2013 +0100
7
-python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h
8
+eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" /usr/include/netinet/in.h
9
diff -r c97447e36665 Makefile.pre.in
10
--- a/Makefile.pre.in Fri Jan 25 13:19:35 2013 +0100
11
+++ b/Makefile.pre.in Fri Jan 25 13:36:51 2013 +0100
14
PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
15
_PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
16
-HOST_GNU_TYPE= @host@
17
+BUILD_GNU_TYPE= @build@
18
+HOST_GNU_TYPE= @host@
20
# The task to run while instrument when building the profile-opt target
21
PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck
22
@@ -1123,6 +1124,12 @@
23
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
24
export EXE; EXE="$(BUILDEXE)"; \
25
if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
26
+ export PYTHON_FOR_BUILD; \
27
+ if [ "$(BUILD_GNU_TYPE)" = "$(HOST_GNU_TYPE)" ]; then \
28
+ PYTHON_FOR_BUILD="$(BUILDPYTHON)"; \
30
+ PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \
32
cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
34
python-config: $(srcdir)/Misc/python-config.in
35
diff -r c97447e36665 configure.ac
36
--- a/configure.ac Fri Jan 25 13:19:35 2013 +0100
37
+++ b/configure.ac Fri Jan 25 13:36:51 2013 +0100
39
AC_CONFIG_HEADER(pyconfig.h)
45
if test "$cross_compiling" = yes; then
46
AC_MSG_CHECKING([for python interpreter for cross build])