diff options
author | sbd <sbd@pkgsrc.org> | 2013-04-20 07:36:17 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2013-04-20 07:36:17 +0000 |
commit | 3f1c4d53bba1b3bff95e39eda60ef989abff69bd (patch) | |
tree | 3dfb24d02af8dfd98d52db2f8e0890402cf571f7 /mk/compiler/gcc.mk | |
parent | 75e2d51b58e7275cf01224d7697f8ef7179321f8 (diff) | |
download | pkgsrc-3f1c4d53bba1b3bff95e39eda60ef989abff69bd.tar.gz |
Use so magic to set _GCC_DIST_VERSION.
Diffstat (limited to 'mk/compiler/gcc.mk')
-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].* \ |