summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-09-05 22:11:10 +0000
committerjperkin <jperkin@pkgsrc.org>2014-09-05 22:11:10 +0000
commit6708d7fddf2f061b11beef564fe09c84070972fc (patch)
tree30e3fa66fbf086acab47ca93b37ff131bf5ca688 /mk/compiler
parent53a5f58a0a28f60f7dd037a53359f4646d39faac (diff)
downloadpkgsrc-6708d7fddf2f061b11beef564fe09c84070972fc.tar.gz
Fix lang/gcc49 dependency logic, based on lang/gcc47.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index ea972282819..333f6e10850 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.149 2014/09/04 18:52:53 jperkin Exp $
+# $NetBSD: gcc.mk,v 1.150 2014/09/05 22:11:10 jperkin Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -488,10 +488,17 @@ _GCC_PKGBASE= gcc49
_IGNORE_GCC= yes
MAKEFLAGS+= _IGNORE_GCC=yes
. endif
-. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc:Mc++)
+. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR= ../../lang/gcc49
_GCC_DEPENDENCY= gcc49>=${_GCC_REQD}:../../lang/gcc49
+. if !empty(_LANGUAGES.gcc:Mc++) || \
+ !empty(_LANGUAGES.gcc:Mfortran) || \
+ !empty(_LANGUAGES.gcc:Mfortran77) || \
+ !empty(_LANGUAGES.gcc:Mgo) || \
+ !empty(_LANGUAGES.gcc:Mobjc) || \
+ !empty(_LANGUAGES.gcc:Mobj-c++)
_USE_GCC_SHLIB?= yes
+. endif
. endif
.elif !empty(_NEED_GCC_AUX:M[yY][eE][sS])
#