summaryrefslogtreecommitdiff
path: root/mk/compiler/gcc.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-12 06:09:12 +0000
committerjlam <jlam@pkgsrc.org>2004-03-12 06:09:12 +0000
commit3cc5b5a47526928ca102a976c08676ed1c7e720d (patch)
tree56b334832e70c9fe0cffb73e984966f69dbf10b4 /mk/compiler/gcc.mk
parent749332991262f55d8ac69689d88ffa7346da0d65 (diff)
downloadpkgsrc-3cc5b5a47526928ca102a976c08676ed1c7e720d.tar.gz
Add support for Objective C, and set USE_GCC_SHLIB whenever we're using
C++, Fortran, or Objective C, as we must link against shared libraries.
Diffstat (limited to 'mk/compiler/gcc.mk')
-rw-r--r--mk/compiler/gcc.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 24cd5da3f81..76ec2e84a10 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.57 2004/03/10 05:13:38 dmcmahill Exp $
+# $NetBSD: gcc.mk,v 1.58 2004/03/12 06:09:12 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -131,7 +131,9 @@ MAKEFLAGS+= _IGNORE_GCC=yes
. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR= ../../lang/gcc
_GCC_DEPENDENCY= gcc>=${_GCC_REQD}:../../lang/gcc
-. if !empty(_LANGUAGES.gcc:Mc++)
+. if !empty(_LANGUAGES.gcc:Mc++) || \
+ !empty(_LANGUAGES.gcc:Mfortran) || \
+ !empty(_LANGUAGES.gcc:Mobjc)
USE_GCC_SHLIB?= yes
. endif
. endif
@@ -170,6 +172,15 @@ _GCC_PKGSRCDIR+= ../../lang/gcc3-f77
_GCC_DEPENDENCY+= gcc3-f77>=${_GCC_REQD}:../../lang/gcc3-f77
USE_GCC_SHLIB?= yes
. endif
+. if !empty(PKGPATH:Mlang/gcc3-objc)
+_IGNORE_GCC3OBJC= yes
+MAKEFLAGS+= _IGNORE_GCC3OBJC=yes
+. endif
+. if !defined(_IGNORE_GCC3OBJC) && !empty(_LANGUAGES.gcc:Mobjc)
+_GCC_PKGSRCDIR+= ../../lang/gcc3-objc
+_GCC_DEPENDENCY+= gcc3-objc>=${_GCC_REQD}:../../lang/gcc3-objc
+USE_GCC_SHLIB?= yes
+. endif
.endif
.if defined(_IGNORE_GCC)