summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorwiz <wiz>2004-11-22 22:24:46 +0000
committerwiz <wiz>2004-11-22 22:24:46 +0000
commit43d6018dc2f966d2cb8987e89d023c3769339ff4 (patch)
tree75ec31cee47b8b80c4b23f8a93bd16e2e1324807 /mk
parent165c836518f9eedbc91e80862633ab5b8cf6aa90 (diff)
downloadpkgsrc-43d6018dc2f966d2cb8987e89d023c3769339ff4.tar.gz
Now that no package uses USE_GCC_SHLIB any longer, remove support
for it from compiler.mk. Move the variable of the same name used by compiler/gcc.mk and the gcc* buildlink3 files into private namespace (_USE_GCC_SHLIB).
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler.mk15
-rw-r--r--mk/compiler/gcc.mk14
2 files changed, 8 insertions, 21 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index c5ff1e5910f..24ae0432ddf 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.37 2004/11/20 04:37:08 grant Exp $
+# $NetBSD: compiler.mk,v 1.38 2004/11/22 22:24:47 wiz Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -40,9 +40,6 @@
# GCC_REQD instead of the native compiler. Should only be set in
# /etc/mk.conf.
#
-# USE_GCC_SHLIB
-# Indicates that a package uses GCC shared libraries, so we
-# register a runtime dependency on the compiler package.
#
# USE_LANGUAGES
# Lists the languages used in the source code of the package,
@@ -68,16 +65,6 @@ BSD_COMPILER_MK= defined
.include "../../mk/bsd.prefs.mk"
-# XXX Add this gross and completely inaccurate hack. Packages that
-# XXX set USE_GCC_SHLIB should be adjusted to set USE_LANGUAGES
-# XXX correctly (most likely by saying it needs either "c++" or
-# XXX "c c++"). This is here for now so that ~85 packages won't
-# XXX suddenly break.
-#
-.if defined(USE_GCC_SHLIB)
-USE_LANGUAGES?= c c++
-.endif
-
# By default, assume that the package requires a C compiler.
USE_LANGUAGES?= c
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index fd8414126db..26334089deb 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.73 2004/11/10 12:04:59 shannonjr Exp $
+# $NetBSD: gcc.mk,v 1.74 2004/11/22 22:24:47 wiz Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -159,7 +159,7 @@ _GCC_DEPENDENCY= gcc>=${_GCC_REQD}:../../lang/gcc
. if !empty(_LANGUAGES.gcc:Mc++) || \
!empty(_LANGUAGES.gcc:Mfortran) || \
!empty(_LANGUAGES.gcc:Mobjc)
-USE_GCC_SHLIB?= yes
+_USE_GCC_SHLIB?= yes
. endif
. endif
.elif !empty(_NEED_GCC3:M[yY][eE][sS])
@@ -190,7 +190,7 @@ _GCC_DEPENDENCY= gcc34>=${_GCC_REQD}:../../lang/gcc34
. if !empty(_LANGUAGES.gcc:Mc++) || \
!empty(_LANGUAGES.gcc:Mfortran) || \
!empty(_LANGUAGES.gcc:Mobjc)
-USE_GCC_SHLIB?= yes
+_USE_GCC_SHLIB?= yes
. endif
. endif
.endif
@@ -204,7 +204,7 @@ MAKEFLAGS+= _IGNORE_GCC3CXX=yes
. if !defined(_IGNORE_GCC3CXX) && !empty(_LANGUAGES.gcc:Mc++)
_GCC_PKGSRCDIR+= ../../lang/gcc3-c++
_GCC_DEPENDENCY+= gcc3-c++>=${_GCC_REQD}:../../lang/gcc3-c++
-USE_GCC_SHLIB?= yes
+_USE_GCC_SHLIB?= yes
. endif
. if !empty(PKGPATH:Mlang/gcc3-f77)
_IGNORE_GCC3F77= yes
@@ -213,7 +213,7 @@ MAKEFLAGS+= _IGNORE_GCC3F77=yes
. if !defined(_IGNORE_GCC3F77) && !empty(_LANGUAGES.gcc:Mfortran)
_GCC_PKGSRCDIR+= ../../lang/gcc3-f77
_GCC_DEPENDENCY+= gcc3-f77>=${_GCC_REQD}:../../lang/gcc3-f77
-USE_GCC_SHLIB?= yes
+_USE_GCC_SHLIB?= yes
. endif
. if !empty(PKGPATH:Mlang/gcc3-objc)
_IGNORE_GCC3OBJC= yes
@@ -222,7 +222,7 @@ MAKEFLAGS+= _IGNORE_GCC3OBJC=yes
. 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
+_USE_GCC_SHLIB?= yes
. endif
.endif
@@ -403,7 +403,7 @@ PREPEND_PATH+= ${_GCC_DIR}/bin
. include "${_dir_}/buildlink3.mk"
. endfor
. else
-. if defined(USE_GCC_SHLIB)
+. if defined(_USE_GCC_SHLIB)
DEPENDS+= ${_GCC_DEPENDENCY}
. else
BUILD_DEPENDS+= ${_GCC_DEPENDENCY}