mirror of
https://gitlab.com/spectre.app/cli.git
synced 2024-11-01 10:51:44 +01:00
Make additional libraries optional.
This commit is contained in:
parent
9da805852d
commit
70bdf9b9a7
1 changed files with 2 additions and 2 deletions
4
build
4
build
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue