diff options
author | jlam <jlam@pkgsrc.org> | 2004-03-17 05:23:05 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-03-17 05:23:05 +0000 |
commit | c723cba6b2262f667fbb8fc80033449b55f8f3ce (patch) | |
tree | b990a4c8d4bea9b3c9db7029e4696c6a8279da49 /mk/compiler | |
parent | 9412c681e608006e436563783c2f33182a88d54f (diff) | |
download | pkgsrc-c723cba6b2262f667fbb8fc80033449b55f8f3ce.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.
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/distcc.mk | 9 |
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} |