summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authordoko@python.org <doko@python.org>2013-01-25 12:12:29 (GMT)
committerdoko@python.org <doko@python.org>2013-01-25 12:12:29 (GMT)
commit3e6e2ac31d8b847f65240f333e54322880adc914 (patch)
tree838a33d8a357315cbfc457e1e129f163bae742d3 /Makefile.pre.in
parente7e9c321959c46f7a5c84c38ae61eda89f616e70 (diff)
downloadcpython-3e6e2ac31d8b847f65240f333e54322880adc914.zip
cpython-3e6e2ac31d8b847f65240f333e54322880adc914.tar.gz
cpython-3e6e2ac31d8b847f65240f333e54322880adc914.tar.bz2
- Issue #17029: Let h2py search the multiarch system include directory.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index c014236..0b1cfcd 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -97,6 +97,9 @@ PY_CORE_CFLAGS= $(PY_CFLAGS) $(PY_CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
# Machine-dependent subdirectories
MACHDEP= @MACHDEP@
+# Multiarch directory (may be empty)
+MULTIARCH= @MULTIARCH@
+
# Install prefix for architecture-independent files
prefix= @prefix@
@@ -1040,6 +1043,7 @@ $(srcdir)/Lib/$(PLATDIR):
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
export EXE; EXE="$(BUILDEXE)"; \
+ if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
python-config: $(srcdir)/Misc/python-config.in