Warn, don't fail, on disabling an unsupported option.
This commit is contained in:
parent
cb01b0424b
commit
7c8690cd2a
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.options.mk,v 1.67 2008/02/18 14:30:40 obache Exp $
|
||||
# $NetBSD: bsd.options.mk,v 1.68 2013/05/11 18:48:52 riastradh Exp $
|
||||
#
|
||||
# This Makefile fragment provides boilerplate code for standard naming
|
||||
# conventions for handling per-package build options.
|
||||
|
@ -285,7 +285,11 @@ _opt_:= -${_popt_}
|
|||
. endif
|
||||
. endif
|
||||
. if empty(PKG_SUPPORTED_OPTIONS:M${_popt_})
|
||||
. if empty(_opt_:M-*)
|
||||
_OPTIONS_UNSUPPORTED:=${_OPTIONS_UNSUPPORTED} ${_opt_}
|
||||
. else
|
||||
PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Option "${_opt_:Q}" is unsupported, so disabling it has no effect."
|
||||
. endif
|
||||
. else
|
||||
. if defined(_PKG_OPTIONS_GROUP_MAP.${_popt_})
|
||||
_grp_:= ${_PKG_OPTIONS_GROUP_MAP.${_popt_}}
|
||||
|
|
Loading…
Reference in a new issue