summaryrefslogtreecommitdiff
path: root/mk/compiler/sunpro.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-12 08:54:48 +0000
committerjlam <jlam@pkgsrc.org>2004-02-12 08:54:48 +0000
commit3d0294d0d4d10cb9e1d9bc4f2365a39416337fea (patch)
tree9b431947dc1b952aaa3bd5800cea32e48bb58c10 /mk/compiler/sunpro.mk
parent512eb8c316a8d80164db4e89ebc64bd9ee7eac5f (diff)
downloadpkgsrc-3d0294d0d4d10cb9e1d9bc4f2365a39416337fea.tar.gz
Generate a more informative string "CC_VERSION_STRING" that is passed to
ccache as the compiler information to hash.
Diffstat (limited to 'mk/compiler/sunpro.mk')
-rw-r--r--mk/compiler/sunpro.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk
index 2e0a703a406..9a997dc6baa 100644
--- a/mk/compiler/sunpro.mk
+++ b/mk/compiler/sunpro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.14 2004/02/10 00:37:53 jlam Exp $
+# $NetBSD: sunpro.mk,v 1.15 2004/02/12 08:54:48 jlam Exp $
.if !defined(COMPILER_SUNPRO_MK)
COMPILER_SUNPRO_MK= one
@@ -35,9 +35,11 @@ CXX= ${PKG_CXX:T}
_COMPILER_LD_FLAG= # empty
. if exists(${SUNWSPROBASE}/bin/cc)
-CC_VERSION!= ${SUNWSPROBASE}/bin/cc -V 2>&1 | ${GREP} '^cc'
+CC_VERSION_STRING!= ${SUNWSPROBASE}/bin/cc -V 2>&1
+CC_VERSION!= ${SUNWSPROBASE}/bin/cc -V 2>&1 | ${GREP} '^cc'
. else
-CC_VERSION= cc: Sun C
+CC_VERSION_STRING= ${CC_VERSION}
+CC_VERSION= cc: Sun C
. endif
.endif # COMPILER_SUNPRO_MK