summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv>2006-05-06 15:20:05 +0000
committertv <tv>2006-05-06 15:20:05 +0000
commita51d0a73183e260d6a8cdb3d7e7cb9e40980182c (patch)
treec4cd029fe42389dab078bacaeeefaac6beae6dd1 /mk
parent4e6cf6ae3128ec4b488de75e453caead36394a7a (diff)
downloadpkgsrc-a51d0a73183e260d6a8cdb3d7e7cb9e40980182c.tar.gz
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 (limited to 'mk')
-rw-r--r--mk/compiler.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 14be434b1e6..8c3de6657ea 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -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.CXX+= ${_COMPILER_ABI_FLAG.${ABI}}
_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