pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler If USE_GCC_SHLIB is defined, then pretend ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55bf7ef2acfd
branches:  trunk
changeset: 467527:55bf7ef2acfd
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Feb 02 10:53:08 2004 +0000

description:
If USE_GCC_SHLIB is defined, then pretend we need both C and C++ compilers.
This is, of course, wrong.  Excerpted from the file itself:

# 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.

diffstat:

 mk/compiler/bsd.compiler.mk |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r e7d0f0e673a7 -r 55bf7ef2acfd mk/compiler/bsd.compiler.mk
--- a/mk/compiler/bsd.compiler.mk       Mon Feb 02 10:49:26 2004 +0000
+++ b/mk/compiler/bsd.compiler.mk       Mon Feb 02 10:53:08 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.compiler.mk,v 1.5 2004/02/02 10:03:46 jlam Exp $
+# $NetBSD: bsd.compiler.mk,v 1.6 2004/02/02 10:53:08 jlam Exp $
 #
 # This Makefile fragment implements handling for supported C/C++/Fortran
 # compilers.
@@ -65,6 +65,17 @@
 .if !defined(BSD_COMPILER_MK)
 BSD_COMPILER_MK=       defined
 
+# 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
 
 # Support some deprecated variables for a while.  They'll be removed



Home | Main Index | Thread Index | Old Index