summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2004-03-17 05:23:05 +0000
committerjlam <jlam>2004-03-17 05:23:05 +0000
commit1813c3fd6ebf638d45d03962dbafe13ca92c97cd (patch)
treeb990a4c8d4bea9b3c9db7029e4696c6a8279da49
parentf282c498409f273ffac5d284217eab155da37e9f (diff)
downloadpkgsrc-1813c3fd6ebf638d45d03962dbafe13ca92c97cd.tar.gz
Allow DISTCC_HOSTS and DISTCC_SSH to be set in /etc/mk.conf to modify the
behaviour of distcc when used in the compiler framework.
-rw-r--r--mk/compiler/distcc.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/compiler/distcc.mk b/mk/compiler/distcc.mk
index 21c572c80a4..4a2dbba2ded 100644
--- a/mk/compiler/distcc.mk
+++ b/mk/compiler/distcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: distcc.mk,v 1.17 2004/02/18 13:32:38 jlam Exp $
+# $NetBSD: distcc.mk,v 1.18 2004/03/17 05:23:05 jlam Exp $
.if !defined(COMPILER_DISTCC_MK)
COMPILER_DISTCC_MK= defined
@@ -61,6 +61,13 @@ PREPEND_PATH+= ${_DISTCC_DIR}/bin
# Add the dependency on distcc.
BUILD_DEPENDS+= distcc-[0-9]*:../../devel/distcc
+.if defined(DISTCC_HOSTS) && !empty(DISTCC_HOSTS)
+BUILD_ENV+= DISTCC_HOSTS=${DISTCC_HOSTS:Q}
+.endif
+.if defined(DISTCC_SSH) && !empty(DISTCC_SSH)
+BUILD_ENV+= DISTCC_SSH=${DISTCC_SSH:Q}
+.endif
+
# Create symlinks for the compiler into ${WRKDIR}.
. if exists(${_DISTCCBASE}/bin/distcc)
. for _target_ in ${_DISTCC_LINKS}