summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-12 11:50:46 +0000
committerjlam <jlam@pkgsrc.org>2004-02-12 11:50:46 +0000
commit1e36f053f5deb3ed45dea8d8dcbf7a66ec3d48ea (patch)
tree097ab24316577269a4de39f51fdee2cb8fab4dc5
parent026c99f5621fcdfa6d978d306256e1cd36a4c080 (diff)
downloadpkgsrc-1e36f053f5deb3ed45dea8d8dcbf7a66ec3d48ea.tar.gz
Prevent non-zero exit status when calling the compiler to print out the
version string.
-rw-r--r--mk/compiler/mipspro.mk4
-rw-r--r--mk/compiler/sunpro.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk
index c38a628cabf..6e6d00152f5 100644
--- a/mk/compiler/mipspro.mk
+++ b/mk/compiler/mipspro.mk
@@ -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 @@ CXX= ${PKG_CXX:T}
. 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 --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk
index 9a997dc6baa..ee1b7934368 100644
--- a/mk/compiler/sunpro.mk
+++ b/mk/compiler/sunpro.mk
@@ -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 @@ CXX= ${PKG_CXX:T}
_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}