summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjlam <jlam>2004-03-12 06:09:12 +0000
committerjlam <jlam>2004-03-12 06:09:12 +0000
commitb0c30e5d4507c79490ae0a57c031010c9d01f152 (patch)
tree56b334832e70c9fe0cffb73e984966f69dbf10b4 /mk/compiler
parent8e8d204ffdd5aa629d9fe45db1364b4067916625 (diff)
downloadpkgsrc-b0c30e5d4507c79490ae0a57c031010c9d01f152.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')
-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)