summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2003-09-21 16:43:47 +0000
committerwiz <wiz@pkgsrc.org>2003-09-21 16:43:47 +0000
commitdfacdb1019e5a05ba00e9b48a56c83bef5d1d868 (patch)
treed0ddedf548f7495396859af966c74dbcbcfe70ee /mk/compiler.mk
parent784ddb2ca80c0ccd57e3a37fbb9a0549779da143 (diff)
downloadpkgsrc-dfacdb1019e5a05ba00e9b48a56c83bef5d1d868.tar.gz
Test for egcs needs to come first, since egcs -v output also
contains "gcc". From Greg A. Woods in PR 22866.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r--mk/compiler.mk10
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)