diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 6ef48e36046c..bbd26d87adec 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.116 2012/04/13 03:03:36 sbd Exp $ +# $NetBSD: gcc.mk,v 1.117 2012/04/16 05:00:44 sbd Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -474,6 +474,7 @@ _GCC_SUBPREFIX!= \ if ${PKG_INFO} -qe ${_GCC_PKGBASE}; then \ ${PKG_INFO} -f ${_GCC_PKGBASE} | \ ${GREP} "File:.*bin/gcc" | \ + ${GREP} -v "/gcc[0-9][0-9]*-.*" | \ ${SED} -e "s/.*File: *//;s/bin\/gcc.*//;q"; \ else \ case ${_CC} in \