pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler Add support for Objective C, and set USE_G...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b8dc7e15ec0
branches:  trunk
changeset: 470846:2b8dc7e15ec0
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Mar 12 06:09:12 2004 +0000

description:
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:

 mk/compiler/gcc.mk |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 57cea1453d5e -r 2b8dc7e15ec0 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Fri Mar 12 06:07:12 2004 +0000
+++ b/mk/compiler/gcc.mk        Fri Mar 12 06:09:12 2004 +0000
@@ -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 @@
 .  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_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)



Home | Main Index | Thread Index | Old Index