summaryrefslogtreecommitdiff
path: root/mk/compiler/ccc.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-23 05:32:22 +0000
committerjlam <jlam@pkgsrc.org>2004-11-23 05:32:22 +0000
commitb72e03c8a5d8629bcc5cf81f8a2e66ca30dce659 (patch)
tree25194d5a6ec672369f21a1dd8970340c18cbdbf4 /mk/compiler/ccc.mk
parent539fa6a01b9d3e226990fdaa8182c963c4372e6f (diff)
downloadpkgsrc-b72e03c8a5d8629bcc5cf81f8a2e66ca30dce659.tar.gz
Use CCPATH instead of referring to the C compiler by its full path in
multiple places.
Diffstat (limited to 'mk/compiler/ccc.mk')
-rw-r--r--mk/compiler/ccc.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/compiler/ccc.mk b/mk/compiler/ccc.mk
index 4de3fe95b7b..388c1005f6f 100644
--- a/mk/compiler/ccc.mk
+++ b/mk/compiler/ccc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ccc.mk,v 1.4 2004/11/23 05:24:28 jlam Exp $
+# $NetBSD: ccc.mk,v 1.5 2004/11/23 05:32:22 jlam Exp $
.if !defined(COMPILER_CCC_MK)
COMPILER_CCC_MK= defined
@@ -37,9 +37,9 @@ CXX= ${PKG_CXX:T}
CXXPATH= /usr/bin/cxx
.endif
-.if exists(/usr/bin/cc) && !defined(CC_VERSION_STRING)
-CC_VERSION_STRING!= /usr/bin/cc -V 2>&1 | awk '{print; exit(0);}'
-CC_VERSION!= /usr/bin/cc -V 2>&1 | awk '{print "CCC-"$3; exit(0);}'
+.if exists(${CCPATH}) && !defined(CC_VERSION_STRING)
+CC_VERSION_STRING!= ${CCPATH} -V 2>&1 | awk '{print; exit(0);}'
+CC_VERSION!= ${CCPATH} -V 2>&1 | awk '{print "CCC-"$3; exit(0);}'
.else
CC_VERSION_STRING?= ${CC_VERSION}
CC_VERSION?= CCC