summaryrefslogtreecommitdiff
path: root/mk
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
commitcbea8f59e4b0f54c53fdef1682515cf0c92f0594 (patch)
tree097ab24316577269a4de39f51fdee2cb8fab4dc5 /mk
parentdc0f2089d9d8cb30adb357da361e74506678610a (diff)
downloadpkgsrc-cbea8f59e4b0f54c53fdef1682515cf0c92f0594.tar.gz
Prevent non-zero exit status when calling the compiler to print out the
version string.
Diffstat (limited to 'mk')
-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}