summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-04 00:32:16 +0000
committerjlam <jlam@pkgsrc.org>2004-02-04 00:32:16 +0000
commit79cd30027c405665bafaab9f0996062d4b57b9d0 (patch)
treed4e5c134e447ce236f8de7153cf6bc65db0c307f /mk/compiler
parent095af71baaf8d3b0db6edc42dbced50510da6065 (diff)
downloadpkgsrc-79cd30027c405665bafaab9f0996062d4b57b9d0.tar.gz
Avoid a non-zero exit value in a != variable definition.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index a9352252b06..5c7bada6f8a 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.26 2004/02/04 00:27:24 jlam Exp $
+# $NetBSD: gcc.mk,v 1.27 2004/02/04 00:32:16 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -28,7 +28,7 @@ _CC= ${_dir_}/${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
.endfor
.if !defined(_GCC_VERSION)
-_GCC_VERSION_STRING!= ( ${_CC} -v || ${ECHO} 0 ) 2>&1 | ${GREP} 'gcc version'
+_GCC_VERSION_STRING!= ( ${_CC} -v 2>&1 | ${GREP} 'gcc version' ) || ${ECHO} 0
. if !empty(_GCC_VERSION_STRING:Megcs*)
_GCC_VERSION= 2.8.1 # egcs is considered to be gcc-2.8.1.
. elif !empty(_GCC_VERSION_STRING:Mgcc*)