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 | d90f7d9beb558f1ca057f79d94306ab5e6c25570 (patch) | |
tree | 073e5ecf854d7a80ac4362915719dfa08ec26939 /mk/compiler | |
parent | 745b70f2b5cee1c0c1beb74af8fd41fbcb14012e (diff) | |
download | pkgsrc-d90f7d9beb558f1ca057f79d94306ab5e6c25570.tar.gz |
quieten spurious broken pipe output from cc.
Diffstat (limited to 'mk/compiler')
-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 |