diff options
author | tv <tv@pkgsrc.org> | 2006-05-06 15:20:05 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2006-05-06 15:20:05 +0000 |
commit | cc385037b126ce7c45fd8f1bb9665f13dc9a7751 (patch) | |
tree | c4cd029fe42389dab078bacaeeefaac6beae6dd1 /mk/compiler.mk | |
parent | 57985bdf8994448e6f8763716954751747cac5c8 (diff) | |
download | pkgsrc-cc385037b126ce7c45fd8f1bb9665f13dc9a7751.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/compiler.mk')
-rw-r--r-- | mk/compiler.mk | 13 |
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 |