diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-05 01:57:38 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-05 01:57:38 +0000 |
commit | 1b5d9d2251877e82ebb934ef1a3d97a3079a3485 (patch) | |
tree | b20b6bb0d4b685ae78f4ad4aac9a00251bf0cbf8 /mk/compiler/sunpro.mk | |
parent | e14bd051b8f0cefc5894065d37f5ea72da591ad3 (diff) | |
download | pkgsrc-1b5d9d2251877e82ebb934ef1a3d97a3079a3485.tar.gz |
Don't compute the CC_VERSION unless ${CC} exists.
Diffstat (limited to 'mk/compiler/sunpro.mk')
-rw-r--r-- | mk/compiler/sunpro.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk index e855d1983a8..7618004907f 100644 --- a/mk/compiler/sunpro.mk +++ b/mk/compiler/sunpro.mk @@ -1,4 +1,4 @@ -# $NetBSD: sunpro.mk,v 1.5 2004/02/03 20:38:39 jlam Exp $ +# $NetBSD: sunpro.mk,v 1.6 2004/02/05 01:57:38 jlam Exp $ .if !defined(COMPILER_SUNPRO_MK) COMPILER_SUNPRO_MK= defined @@ -28,6 +28,10 @@ CXX= ${SUNWSPROBASE}/bin/CC _COMPILER_LD_FLAG= # empty +.if exists(${CC}) CC_VERSION!= ${CC} -V 2>&1 | ${GREP} '^cc' +.else +CC_VERSION= sunpro +.endif .endif # COMPILER_SUNPRO_MK |