summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}