pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Test for egcs needs to come first, since egcs -v ou...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e1e5fede04fc
branches:  trunk
changeset: 461790:e1e5fede04fc
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Sep 21 16:43:47 2003 +0000

description:
Test for egcs needs to come first, since egcs -v output also
contains "gcc". From Greg A. Woods in PR 22866.

diffstat:

 mk/compiler.mk |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r b8eed5a4b393 -r e1e5fede04fc mk/compiler.mk
--- a/mk/compiler.mk    Sun Sep 21 16:43:28 2003 +0000
+++ b/mk/compiler.mk    Sun Sep 21 16:43:47 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.8 2003/09/17 19:58:08 grant Exp $
+# $NetBSD: compiler.mk,v 1.9 2003/09/21 16:43:47 wiz Exp $
 
 # This Makefile fragment implements handling for supported
 # C/C++/fortran compilers.
@@ -63,11 +63,11 @@
                        fi
 
 # egcs is considered to be gcc-2.8.1.
-.  if !empty(_CC_VERSION_STRING:Mgcc*)
-_CC_VERSION!=          ${CC} -dumpversion
+.  if !empty(_CC_VERSION_STRING:Megcs*)
+_CC_VERSION=           2.8.1
 _CC_IS_GCC=            YES
-.  elif !empty(_CC_VERSION_STRING:Megcs*)
-_CC_VERSION=           2.8.1
+.  elif !empty(_CC_VERSION_STRING:Mgcc*)
+_CC_VERSION!=          ${CC} -dumpversion
 _CC_IS_GCC=            YES
 .  endif
 



Home | Main Index | Thread Index | Old Index