File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22set -v
3- python $EXE ../../Tools/scripts/h2py.py -i ' (u_long)' /usr/include/netinet/in.h
3+ eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i " '(u_long)'" /usr/include/netinet/in.h
Original file line number Diff line number Diff line change @@ -203,7 +203,8 @@ BUILDPYTHON= python$(BUILDEXE)
203203
204204PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
205205_PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
206- HOST_GNU_TYPE= @host@
206+ BUILD_GNU_TYPE= @build@
207+ HOST_GNU_TYPE= @host@
207208
208209# The task to run while instrument when building the profile-opt target
209210PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck
@@ -1123,6 +1124,12 @@ $(srcdir)/Lib/$(PLATDIR):
11231124 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
11241125 export EXE; EXE="$(BUILDEXE)"; \
11251126 if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
1127+ export PYTHON_FOR_BUILD; \
1128+ if [ "$(BUILD_GNU_TYPE)" = "$(HOST_GNU_TYPE)" ]; then \
1129+ PYTHON_FOR_BUILD="$(BUILDPYTHON)"; \
1130+ else \
1131+ PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \
1132+ fi; \
11261133 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
11271134
11281135python-config: $(srcdir)/Misc/python-config.in
Original file line number Diff line number Diff line change @@ -752,6 +752,8 @@ Tests
752752Build
753753-----
754754
755+ - Issue #17031: Fix running regen in cross builds.
756+
755757- Issue #3754: fix typo in pthread AC_CACHE_VAL.
756758
757759- Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;
Original file line number Diff line number Diff line change @@ -2926,6 +2926,8 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
29262926
29272927
29282928
2929+
2930+
29292931if test " $cross_compiling " = yes; then
29302932 { $as_echo " $as_me :${as_lineno-$LINENO } : checking for python interpreter for cross build" >&5
29312933$as_echo_n " checking for python interpreter for cross build... " >&6 ; }
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ AC_CONFIG_SRCDIR([Include/object.h])
5050AC_CONFIG_HEADER(pyconfig.h)
5151
5252AC_CANONICAL_HOST
53+ AC_SUBST ( build )
54+ AC_SUBST ( host )
5355
5456if test "$cross_compiling" = yes; then
5557 AC_MSG_CHECKING ( [ for python interpreter for cross build] )
You can’t perform that action at this time.
0 commit comments