diff options
author | wiz <wiz@pkgsrc.org> | 2003-09-21 16:43:47 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-09-21 16:43:47 +0000 |
commit | dfacdb1019e5a05ba00e9b48a56c83bef5d1d868 (patch) | |
tree | d0ddedf548f7495396859af966c74dbcbcfe70ee | |
parent | 784ddb2ca80c0ccd57e3a37fbb9a0549779da143 (diff) | |
download | pkgsrc-dfacdb1019e5a05ba00e9b48a56c83bef5d1d868.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) |