summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-02 10:49:26 +0000
committerjlam <jlam@pkgsrc.org>2004-02-02 10:49:26 +0000
commit81ef5c536b52cc26912ae7aa802062503d96f1dc (patch)
tree0fd9b7cecf72bfb9ba73032c109f4655cda8bbd3 /mk/compiler
parent5193f72834adc49c0ea8522366bc18df1f0fcb84 (diff)
downloadpkgsrc-81ef5c536b52cc26912ae7aa802062503d96f1dc.tar.gz
If we need a GCC C++ or Fortran compiler, then define USE_GCC_SHLIBS as
all of those programs will link against either libstdc++.so or libg2c.so.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 0354b0b84eb..dd5a04eaa1e 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.9 2004/02/02 10:34:00 jlam Exp $
+# $NetBSD: gcc.mk,v 1.10 2004/02/02 10:49:26 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -95,6 +95,9 @@ MAKEFLAGS+= _IGNORE_GCC=yes
. elif !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR= ../../lang/gcc
_GCC_DEPENDENCY= gcc>=${_GCC_REQD}:../../lang/gcc
+. if !empty(_LANGUAGES.gcc:Mc++)
+USE_GCC_SHLIB?= yes
+. endif
. endif
.elif defined(_NEED_GCC3)
#
@@ -119,6 +122,7 @@ MAKEFLAGS+= _IGNORE_GCC3CXX=yes
. elif !empty(_LANGUAGES.gcc:Mc++)
_GCC_PKGSRCDIR+= ../../lang/gcc3-c++
_GCC_DEPENDENCY+= gcc3-c++>=${_GCC_REQD}:../../lang/gcc3-c++
+USE_GCC_SHLIB?= yes
. endif
. if !empty(PKGPATH:Mlang/gcc3-f77)
_IGNORE_GCC3F77= yes
@@ -126,6 +130,7 @@ MAKEFLAGS+= _IGNORE_GCC3F77=yes
. elif !empty(_LANGUAGES.gcc:Mfortran)
_GCC_PKGSRCDIR+= ../../lang/gcc3-f77
_GCC_DEPENDENCY+= gcc3-f77>=${_GCC_REQD}:../../lang/gcc3-f77
+USE_GCC_SHLIB?= yes
. endif
.endif
_GCC_DEPENDS= ${_GCC_PKGBASE}>=${_GCC_REQD}