pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Prevent non-zero exit status when calling ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30b5fed9d513
branches:  trunk
changeset: 468304:30b5fed9d513
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Feb 12 11:50:46 2004 +0000

description:
Prevent non-zero exit status when calling the compiler to print out the
version string.

diffstat:

 mk/compiler/mipspro.mk |  4 ++--
 mk/compiler/sunpro.mk  |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r e1d42ae2a6f0 -r 30b5fed9d513 mk/compiler/mipspro.mk
--- a/mk/compiler/mipspro.mk    Thu Feb 12 11:40:45 2004 +0000
+++ b/mk/compiler/mipspro.mk    Thu Feb 12 11:50:46 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.17 2004/02/12 08:54:48 jlam Exp $
+# $NetBSD: mipspro.mk,v 1.18 2004/02/12 11:50:46 jlam Exp $
 
 .if !defined(COMPILER_MIPSPRO_MK)
 COMPILER_MIPSPRO_MK=   one
@@ -34,7 +34,7 @@
 
 .  if exists(${MIPSPROBASE}/bin/cc)
 # MIPSpro Compilers: Version 7.3.1.2m
-CC_VERSION_STRING!=    ${MIPSPROBASE}/bin/cc -version 2>&1
+CC_VERSION_STRING!=    ${MIPSPROBASE}/bin/cc -version 2>&1 || ${TRUE}
 CC_VERSION!=           ${MIPSPROBASE}/bin/cc -version 2>&1 | ${GREP} '^MIPSpro'
 .  else
 CC_VERSION_STRING=     ${CC_VERSION}
diff -r e1d42ae2a6f0 -r 30b5fed9d513 mk/compiler/sunpro.mk
--- a/mk/compiler/sunpro.mk     Thu Feb 12 11:40:45 2004 +0000
+++ b/mk/compiler/sunpro.mk     Thu Feb 12 11:50:46 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.15 2004/02/12 08:54:48 jlam Exp $
+# $NetBSD: sunpro.mk,v 1.16 2004/02/12 11:50:46 jlam Exp $
 
 .if !defined(COMPILER_SUNPRO_MK)
 COMPILER_SUNPRO_MK=    one
@@ -35,7 +35,7 @@
 _COMPILER_LD_FLAG=     # empty
 
 .  if exists(${SUNWSPROBASE}/bin/cc)
-CC_VERSION_STRING!=    ${SUNWSPROBASE}/bin/cc -V 2>&1
+CC_VERSION_STRING!=    ${SUNWSPROBASE}/bin/cc -V 2>&1 || ${TRUE}
 CC_VERSION!=           ${SUNWSPROBASE}/bin/cc -V 2>&1 | ${GREP} '^cc'
 .  else
 CC_VERSION_STRING=     ${CC_VERSION}



Home | Main Index | Thread Index | Old Index