diff options
author | wiz <wiz> | 2003-09-21 16:43:47 +0000 |
---|---|---|
committer | wiz <wiz> | 2003-09-21 16:43:47 +0000 |
commit | bcafba143563d77561c32135e7055aa47060cbb9 (patch) | |
tree | d0ddedf548f7495396859af966c74dbcbcfe70ee | |
parent | 9679945f91510341627735ebcf299638a98ff5fe (diff) | |
download | pkgsrc-bcafba143563d77561c32135e7055aa47060cbb9.tar.gz |
Test for egcs needs to come first, since egcs -v output also
contains "gcc". From Greg A. Woods in PR 22866.
-rw-r--r-- | mk/compiler.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index eddddfd0eff..5d4199c9df5 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -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,12 +63,12 @@ _CC_VERSION_STRING!= if ${CC} -v 2>&1 | ${GREP} -q 'gcc version'; then \ fi # egcs is considered to be gcc-2.8.1. -. if !empty(_CC_VERSION_STRING:Mgcc*) -_CC_VERSION!= ${CC} -dumpversion -_CC_IS_GCC= YES -. elif !empty(_CC_VERSION_STRING:Megcs*) +. if !empty(_CC_VERSION_STRING:Megcs*) _CC_VERSION= 2.8.1 _CC_IS_GCC= YES +. elif !empty(_CC_VERSION_STRING:Mgcc*) +_CC_VERSION!= ${CC} -dumpversion +_CC_IS_GCC= YES . endif . if defined(_CC_IS_GCC) |