summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authordoko@python.org <doko@python.org>2013-01-25 17:45:12 (GMT)
committerdoko@python.org <doko@python.org>2013-01-25 17:45:12 (GMT)
commita10e4a9afbb95e74657455b6fb07a81fce948a3b (patch)
treeff125956eaa1a7b1b3db8f3f2a3b4e14f050ebb7 /Makefile.pre.in
parent1c90eed8a9a10b6b7eb5f791931cc86754d4028c (diff)
downloadcpython-a10e4a9afbb95e74657455b6fb07a81fce948a3b.zip
cpython-a10e4a9afbb95e74657455b6fb07a81fce948a3b.tar.gz
cpython-a10e4a9afbb95e74657455b6fb07a81fce948a3b.tar.bz2
- Issue #17031: Fix running regen in cross builds.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 8883461..716de12 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