summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorcube <cube>2003-10-24 12:07:14 +0000
committercube <cube>2003-10-24 12:07:14 +0000
commit92761fe24352421391640a5a60205563e35ed9fb (patch)
tree01c1a5903db2bb43996eb573b342794e9a409aaa /mk/compiler.mk
parenta8065468ce8b78f0cbef62c724473587fe0137a8 (diff)
downloadpkgsrc-92761fe24352421391640a5a60205563e35ed9fb.tar.gz
Remove '-' from the version part of _GCC_IN_USE so that pkg_admin can deal
with the installed gcc when it has a localized version (such as our gcc-3.3.2-nb1).
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r--mk/compiler.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 5a315162133..c0e900f8025 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.21 2003/10/18 09:14:47 grant Exp $
+# $NetBSD: compiler.mk,v 1.22 2003/10/24 12:07:14 cube Exp $
# This Makefile fragment implements handling for supported
# C/C++/fortran compilers.
@@ -102,7 +102,7 @@ _GCC_VERSION_REQD= gcc>=${GCC_REQD}
GCC_REQD= 2.95.3
_NEED_PKGSRC_GCC= YES
. else
-_GCC_IN_USE= gcc-${_CC_VERSION}
+_GCC_IN_USE= gcc-${_CC_VERSION:S/-//g}
_NEED_PKGSRC_GCC!= \
if ${PKG_ADMIN} pmatch '${_GCC_VERSION_REQD}' ${_GCC_IN_USE}; then \
${ECHO} "NO"; \