aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2017-12-03 13:59:53 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2017-12-03 13:59:53 +0000
commitdadf9b1fa7a52359dfb8b87a3c3be2aa7463eed9 (patch)
tree1d952b83d09efa0dd44a25e330081fe3f16ad11c /lang/gcc
parent34e60e1c372de31252c9446391350e0ec0337895 (diff)
downloadports-dadf9b1fa7a52359dfb8b87a3c3be2aa7463eed9.tar.gz
ports-dadf9b1fa7a52359dfb8b87a3c3be2aa7463eed9.zip
Ensure our dependencies also work properly when GCC_DEFAULT is one of
the older versions, in particular 4.9 which is the last working on SPARC. Reported by: linimon
Notes
Notes: svn path=/head/; revision=455405
Diffstat (limited to 'lang/gcc')
-rw-r--r--lang/gcc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index 1ac28d75436e..e15915d34df8 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -10,7 +10,9 @@ DISTFILES= # not applicable
MAINTAINER= gerald@FreeBSD.org
COMMENT= Meta-port for the default version of the GNU Compiler Collection
-RUN_DEPENDS= gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}
+# Once GCC 4.9 and 4.8 aren't options any longer, we can simply use
+# GCC_DEFAULT again below (the expression rewrites 4.9 to 49).
+RUN_DEPENDS= gcc${GCC_DEFAULT:S/.//}:lang/gcc${GCC_DEFAULT:S/.//}
NO_ARCH= yes
NO_BUILD= yes