summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-04-24 08:33:19 +0000
committerobache <obache@pkgsrc.org>2010-04-24 08:33:19 +0000
commit855d6003f9ab00f7be13a34ef6ce643d0dbc4b27 (patch)
treec7fed987b4562f6946be0b662a836901ba012080 /mk
parent66a48169c523ebf18eed390cc15fda75d675d689 (diff)
downloadpkgsrc-855d6003f9ab00f7be13a34ef6ce643d0dbc4b27.tar.gz
Remove tail of -* from _GCC_VERSION for _GCC_PKG.
With gcc2 on Haiku, it's 2.95.3-haiku-090629, confuse pmatch of pkg_admin.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 67742e5909a..c876bdd2530 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.103 2010/03/15 08:27:49 adam Exp $
+# $NetBSD: gcc.mk,v 1.104 2010/04/24 08:33:19 obache Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -117,7 +117,7 @@ _GCC_VERSION!= ${_CC} -dumpversion
_GCC_VERSION= 0
. endif
.endif
-_GCC_PKG= gcc-${_GCC_VERSION}
+_GCC_PKG= gcc-${_GCC_VERSION:C/-.*$//}
.if !empty(_CC:M${LOCALBASE}/*)
_IS_BUILTIN_GCC= NO