summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorgrant <grant>2004-11-20 05:54:36 +0000
committergrant <grant>2004-11-20 05:54:36 +0000
commit0c39fbfefe664bd2fa4dcab63393156cc41f5953 (patch)
tree073e5ecf854d7a80ac4362915719dfa08ec26939 /mk/compiler
parent0d3e2d6022723d4ded74ef4d94d9ac5d012e30a8 (diff)
downloadpkgsrc-0c39fbfefe664bd2fa4dcab63393156cc41f5953.tar.gz
quieten spurious broken pipe output from cc.
Diffstat (limited to 'mk/compiler')
-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 407cf7521e9..5e503b2666b 100644
--- a/mk/compiler/ccc.mk
+++ b/mk/compiler/ccc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ccc.mk,v 1.1 2004/11/20 04:37:08 grant Exp $
+# $NetBSD: ccc.mk,v 1.2 2004/11/20 05:54:36 grant Exp $
.if !defined(COMPILER_CCC_MK)
COMPILER_CCC_MK= defined
@@ -35,9 +35,9 @@ PKG_CXX= ${_CCC_CXX}
CXX= ${PKG_CXX:T}
.endif
-.if exists(/usr/bin/cc)
-CC_VERSION_STRING!= /usr/bin/cc -V | awk '{print $0; exit(0);}'
-CC_VERSION!= /usr/bin/cc -V | awk '{print "CCC-"$3; exit(0);}'
+.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);}'
.else
CC_VERSION_STRING?= ${CC_VERSION}
CC_VERSION?= CCC