summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-07-28 01:30:06 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-07-28 01:30:06 (GMT)
commit4b53359090b7b3cfad128e40083f563f7c1900e4 (patch)
tree68522036faff8daa2d5dcc1afac13a526d3f6a5e /configure
parent2561726aa6cd5b92a21e9a8510bd9eca02c5932a (diff)
parenteac67be948e972dc12b7b4abfa83b09becf6422c (diff)
downloadcpython-4b53359090b7b3cfad128e40083f563f7c1900e4.zip
cpython-4b53359090b7b3cfad128e40083f563f7c1900e4.tar.gz
cpython-4b53359090b7b3cfad128e40083f563f7c1900e4.tar.bz2
Issue #27490: Merge pgen cross-compile logic from 3.5
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 0504a64..da98f69 100755
--- a/configure
+++ b/configure
@@ -740,6 +740,7 @@ UNIVERSALSDK
CONFIG_ARGS
SOVERSION
VERSION
+PGEN_DEPENDENCY
PYTHON_FOR_BUILD
PYTHON_FOR_GEN
host_os
@@ -3050,14 +3051,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