pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler quieten spurious broken pipe output from cc.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6860910a7e33
branches:  trunk
changeset: 483846:6860910a7e33
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Nov 20 05:54:36 2004 +0000

description:
quieten spurious broken pipe output from cc.

diffstat:

 mk/compiler/ccc.mk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 65c9f5b4dec6 -r 6860910a7e33 mk/compiler/ccc.mk
--- a/mk/compiler/ccc.mk        Sat Nov 20 05:19:12 2004 +0000
+++ b/mk/compiler/ccc.mk        Sat Nov 20 05:54:36 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index