From 2db74558c6b16b8156870ee69debd7bdaf38bdbb Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 21 Feb 2004 12:31:38 +0000 Subject: Use BUILD_ENV instead of just {CONFIGURE,MAKE}_ENV to pass CCACHE_HASHCC to ccache. This now correctly passes CCACHE_HASHCC to ccache if the package has a custom do-build target that invokes ${CC} directly. --- mk/compiler/ccache.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mk/compiler/ccache.mk') diff --git a/mk/compiler/ccache.mk b/mk/compiler/ccache.mk index 437870d7b2b..a490ecc4f36 100644 --- a/mk/compiler/ccache.mk +++ b/mk/compiler/ccache.mk @@ -1,4 +1,4 @@ -# $NetBSD: ccache.mk,v 1.15 2004/02/18 13:32:38 jlam Exp $ +# $NetBSD: ccache.mk,v 1.16 2004/02/21 12:31:38 jlam Exp $ .if !defined(COMPILER_CCACHE_MK) COMPILER_CCACHE_MK= defined @@ -64,8 +64,7 @@ BUILD_DEPENDS+= ccache-[0-9]*:../../devel/ccache # Override the compiler-specific hash with the version string for the # compiler. # -CONFIGURE_ENV+= CCACHE_HASHCC=${CC_VERSION_STRING:Q} -MAKE_ENV+= CCACHE_HASHCC=${CC_VERSION_STRING:Q} +BUILD_ENV+= CCACHE_HASHCC=${CC_VERSION_STRING:Q} # Create symlinks for the compiler into ${WRKDIR}. . if exists(${_CCACHEBASE}/bin/ccache) -- cgit v1.2.3