Make additional libraries optional.

This commit is contained in:
Maarten Billemont 2017-11-06 21:58:51 -05:00
parent 9da805852d
commit 70bdf9b9a7

4
build
View file

@ -155,10 +155,10 @@ use() {
if (( enabled )); then
if haslib "$lib"; then
echo >&2 "INFO: Enabled $option (lib$lib)."
for lib in "$lib" "$@"; do
ldflags+=( -l"$lib" )
haslib "$lib" && ldflags+=( -l"$lib" )
done
echo >&2 "INFO: Enabled $option (lib$lib)."
return 0
elif [[ $requisite == required ]]; then