summaryrefslogtreecommitdiff
path: root/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
commita9cc44f9bd05b3dd329da68d15416f9b9dc53bf4 (patch)
tree56b334832e70c9fe0cffb73e984966f69dbf10b4 /mk
parent24469b6b6b95745c47b17d484bf5c96f42476fc6 (diff)
downloadpkgsrc-a9cc44f9bd05b3dd329da68d15416f9b9dc53bf4.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')
-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)