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 | 250b02f2946806a47c22ff0f170421dc5b666630 (patch) | |
tree | b990a4c8d4bea9b3c9db7029e4696c6a8279da49 /mk | |
parent | 7dc2ba4d4c6c2599a94c080c3ce0a9e1e31ede7b (diff) | |
download | pkgsrc-250b02f2946806a47c22ff0f170421dc5b666630.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')
-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} |