pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Avoid a non-zero exit value in a != variab...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b8dc70daf0e2
branches:  trunk
changeset: 467615:b8dc70daf0e2
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Feb 04 00:32:16 2004 +0000

description:
Avoid a non-zero exit value in a != variable definition.

diffstat:

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

diffs (18 lines):

diff -r 031cef49f627 -r b8dc70daf0e2 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Wed Feb 04 00:27:24 2004 +0000
+++ b/mk/compiler/gcc.mk        Wed Feb 04 00:32:16 2004 +0000
@@ -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 @@
 .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*)



Home | Main Index | Thread Index | Old Index