From b0c30e5d4507c79490ae0a57c031010c9d01f152 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 12 Mar 2004 06:09:12 +0000 Subject: 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. --- mk/compiler/gcc.mk | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'mk') 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) -- cgit v1.2.3