diff options
author | sbd <sbd> | 2013-04-20 07:36:17 +0000 |
---|---|---|
committer | sbd <sbd> | 2013-04-20 07:36:17 +0000 |
commit | ece8cac45688e5183068b153402678ba12f05ab0 (patch) | |
tree | 3dfb24d02af8dfd98d52db2f8e0890402cf571f7 /mk/compiler | |
parent | 568d5669f21ed9c4bf435463b39cd7fd6285cf3f (diff) | |
download | pkgsrc-ece8cac45688e5183068b153402678ba12f05ab0.tar.gz |
Use so magic to set _GCC_DIST_VERSION.
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/gcc.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 8a3fc079914..abd0ef84e0f 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.135 2013/04/19 16:34:46 adam Exp $ +# $NetBSD: gcc.mk,v 1.136 2013/04/20 07:36:17 sbd Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -108,8 +108,9 @@ GCC_REQD+= 20120614 # _GCC_DIST_VERSION is the highest version of GCC installed by the pkgsrc # without the PKGREVISIONs. -.include "../../lang/gcc48/version.mk" -_GCC_DIST_VERSION:= ${GCC48_DIST_VERSION} +_GCC_DIST_NAME:= gcc48 +.include "../../lang/${_GCC_DIST_NAME}/version.mk" +_GCC_DIST_VERSION:= ${${_GCC_DIST_NAME:tu}_DIST_VERSION} # _GCC2_PATTERNS matches N s.t. N <= 2.95.3. _GCC2_PATTERNS= [0-1].* 2.[0-9] 2.[0-9].* 2.[1-8][0-9] 2.[1-8][0-9].* \ |