pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Force unrequested languages to be unavailable by se...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/831832771c76
branches:  trunk
changeset: 512342:831832771c76
user:      tv <tv%pkgsrc.org@localhost>
date:      Sat May 06 15:20:05 2006 +0000

description:
Force unrequested languages to be unavailable by setting them to ${FALSE}.
This way, missing language dependencies will be caught at build time.

(Tested without problems on several C++ packages by unsetting LANGUAGES in
them.  I don't have a machine fast enough to bulk build, but I shall be
watching the next round on pkgsrc-bulk to fix what I may not know about
right now.)

diffstat:

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

diffs (25 lines):

diff -r c7c744fa3d6f -r 831832771c76 mk/compiler.mk
--- a/mk/compiler.mk    Sat May 06 15:08:12 2006 +0000
+++ b/mk/compiler.mk    Sat May 06 15:20:05 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.47 2005/10/16 19:44:44 schwarz Exp $
+# $NetBSD: compiler.mk,v 1.48 2006/05/06 15:20:05 tv Exp $
 #
 # This Makefile fragment implements handling for supported C/C++/Fortran
 # compilers.
@@ -147,4 +147,15 @@
 _WRAP_EXTRA_ARGS.LD+=  ${_LINKER_ABI_FLAG.${ABI}}
 .endif
 
+# If the languages are not requested, force them not to be available
+# in the generated wrappers.
+#
+.if empty(USE_LANGUAGES:Mc++)
+PKG_CXX:=              ${FALSE}
+ALL_ENV+=              CXXCPP=${CPP:Q} # to make some Autoconf scripts happy
+.endif
+.if empty(USE_LANGUAGES:Mfortran)
+PKG_FC:=               ${FALSE}
+.endif
+
 .endif # BSD_COMPILER_MK



Home | Main Index | Thread Index | Old Index