diff options
author | grant <grant@pkgsrc.org> | 2004-11-20 05:54:36 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-11-20 05:54:36 +0000 |
commit | 4321a9c87727c51b7fe693c7a532e13d32a4df13 (patch) | |
tree | 073e5ecf854d7a80ac4362915719dfa08ec26939 /mk | |
parent | cda1ab8d17ff0b94c0f4850b7770ea20adfcb195 (diff) | |
download | pkgsrc-4321a9c87727c51b7fe693c7a532e13d32a4df13.tar.gz |
quieten spurious broken pipe output from cc.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler/ccc.mk | 8 |
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 |