summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2005-01-29 01:47:40 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2005-01-29 01:47:40 +0000
commit215a13d04a85fe0f0c9949ba176454fd15200401 (patch)
tree80d78a8f8bcbef7a4bfb5d8b9eb2b1b90294f931 /Mk
parent- Update to 5.0.1 (diff)
Propagate PYTHON_VERSION to child make processes to avoid duplicated
dependency on many python versions. This fixes a problem that Zope product ports depend on both of Python 2.3 and 2.4 if they use not only Zope itself but also 3rd party Python modules. Submitted by: Filippo Natali <filippo.natali@widestore.net>
Notes
Notes: svn path=/head/; revision=127585
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.python.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index 55462a0874ec..8d4b73abc63e 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -204,6 +204,9 @@ _PYTHON_PORTVERSION!= (${PYTHON_CMD} -c 'import string, sys; \
PYTHON_PORTVERSION= ${_PYTHON_PORTVERSION}
.endif
+# Propagate the chosen python version to submakes.
+.MAKEFLAGS: PYTHON_VERSION=python${_PYTHON_VERSION}
+
# Python-2.4
.if ${PYTHON_VERSION} == "python2.4"
PYTHON_PORTVERSION?=2.4