diff options
author | doko@python.org <doko@python.org> | 2013-01-25 17:45:41 (GMT) |
---|---|---|
committer | doko@python.org <doko@python.org> | 2013-01-25 17:45:41 (GMT) |
commit | 90c8d06d687eed87fa61bf6bcc3a40beeaef39cd (patch) | |
tree | 1e1622269d0aed50e8354deb164cf9498c54e172 | |
parent | 20190e2d54e6d513bb197a160cdfd236bf63f168 (diff) | |
parent | a10e4a9afbb95e74657455b6fb07a81fce948a3b (diff) | |
download | cpython-90c8d06d687eed87fa61bf6bcc3a40beeaef39cd.zip cpython-90c8d06d687eed87fa61bf6bcc3a40beeaef39cd.tar.gz cpython-90c8d06d687eed87fa61bf6bcc3a40beeaef39cd.tar.bz2 |
- Issue #17031: Fix running regen in cross builds.
-rwxr-xr-x | Lib/plat-generic/regen | 2 | ||||
-rw-r--r-- | Makefile.pre.in | 9 | ||||
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
5 files changed, 15 insertions, 2 deletions
diff --git a/Lib/plat-generic/regen b/Lib/plat-generic/regen index a20cdc1..c96167d 100755 --- a/Lib/plat-generic/regen +++ b/Lib/plat-generic/regen @@ -1,3 +1,3 @@ #! /bin/sh set -v -python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h +eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" /usr/include/netinet/in.h diff --git a/Makefile.pre.in b/Makefile.pre.in index 8297004..a9a68e3 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -203,7 +203,8 @@ BUILDPYTHON= python$(BUILDEXE) PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@ _PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@ -HOST_GNU_TYPE= @host@ +BUILD_GNU_TYPE= @build@ +HOST_GNU_TYPE= @host@ # The task to run while instrument when building the profile-opt target PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck @@ -1123,6 +1124,12 @@ $(srcdir)/Lib/$(PLATDIR): export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \ export EXE; EXE="$(BUILDEXE)"; \ if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \ + export PYTHON_FOR_BUILD; \ + if [ "$(BUILD_GNU_TYPE)" = "$(HOST_GNU_TYPE)" ]; then \ + PYTHON_FOR_BUILD="$(BUILDPYTHON)"; \ + else \ + PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \ + fi; \ cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen python-config: $(srcdir)/Misc/python-config.in @@ -752,6 +752,8 @@ Tests Build ----- +- Issue #17031: Fix running regen in cross builds. + - Issue #3754: fix typo in pthread AC_CACHE_VAL. - Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds; @@ -2926,6 +2926,8 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + if test "$cross_compiling" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 $as_echo_n "checking for python interpreter for cross build... " >&6; } diff --git a/configure.ac b/configure.ac index 456d111..969b052 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,8 @@ AC_CONFIG_SRCDIR([Include/object.h]) AC_CONFIG_HEADER(pyconfig.h) AC_CANONICAL_HOST +AC_SUBST(build) +AC_SUBST(host) if test "$cross_compiling" = yes; then AC_MSG_CHECKING([for python interpreter for cross build]) |