Hauke Fath wrote:
Hi,
Hi Hauke,
I would like to build a package from a Makefile with a changing set of
build options, like so:
build-with-changing-opts:
.for _opt_ in ${PKG_SUPPORTED_OPTIONS}
@echo "=> Building without option ${_opt_}
(${PKG_SUPPORTED_OPTIONS})"
${MAKE} clean
${MAKE} ${PKG_OPTIONS_VAR}=${PKG_SUPPORTED_OPTIONS:N${_opt_}:Q}
[...]
.endfor
Unless I am mistaken, the option name must be prefixed by "-" to be
disabled in PKG_OPTIONS_VAR. I am not sure, but I would try something
like:
${MAKE} ${PKG_OPTIONS_VAR}="-${_opt_}
${PKG_SUPPORTED_OPTIONS:N${_opt_}:Q}"
I don't know if the quotation marks are necessary...