diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:28:27 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-28 01:28:27 +0000 |
commit | 801110b30319a8ab1f8f29eedbac3798b03afb55 (patch) | |
tree | 9ee01eba387e8d92656fccfb6db4780bce5a12d2 /configure | |
parent | 2e1a34025cde19bddf12a2eac8fedb6afcca8339 (diff) | |
download | cpython-git-801110b30319a8ab1f8f29eedbac3798b03afb55.tar.gz |
Issue #27490: Do not build pgen when cross-compiling
The dependendency on the $(PGEN) variable must only be
set when not cross-compiling. When cross-compiling,
$(PGEN) will not be used, so no need to build it.
Patch by Thomas Perl.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -735,6 +735,7 @@ UNIVERSALSDK CONFIG_ARGS SOVERSION VERSION +PGEN_DEPENDENCY PYTHON_FOR_BUILD host_os host_vendor @@ -2924,14 +2925,17 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; } $as_echo "$interp" >&6; } PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp fi + PGEN_DEPENDENCY='' elif test "$cross_compiling" = maybe; then as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 else PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' + PGEN_DEPENDENCY='$(PGEN)' fi + if test "$prefix" != "/"; then prefix=`echo "$prefix" | sed -e 's/\/$//g'` fi |