2
0

Make additional libraries optional.

This commit is contained in:
Maarten Billemont 2017-11-06 21:58:51 -05:00
parent 4e160b3b33
commit ff9d0d75ef

View File

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