diff options
author | Sam Bingner <sam@bingner.com> | 2018-10-12 16:47:06 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-10-12 16:47:06 -1000 |
commit | 24f6d59354df69788c96f26e8c046a50c383c886 (patch) | |
tree | ed2343230d45a634b15398dfa7a7e2c67a960aba /util/pkg-config.sh | |
parent | 330f4f07f97d829f6337de5b20efb19e58bab319 (diff) |
Build environment changes
Diffstat (limited to 'util/pkg-config.sh')
-rwxr-xr-x | util/pkg-config.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util/pkg-config.sh b/util/pkg-config.sh index cc70779b0..c1dc486c1 100755 --- a/util/pkg-config.sh +++ b/util/pkg-config.sh @@ -17,7 +17,7 @@ while [[ $# -ne 0 ]]; do case "$1" in args[${#args[@]}]=$1 ;; - (--errors-to-stdout|--exists|--modversion|--print-errors|--short-errors|--uninstalled) + (--errors-to-stdout|--exists|--modversion|--print-errors|--short-errors|--uninstalled|--debug) args[${#args[@]}]=$1 ;; @@ -27,6 +27,11 @@ while [[ $# -ne 0 ]]; do case "$1" in shift ;; + (--atleast-version=*) + args[${#args[@]}]=--atleast-version + args[${#args[@]}]=$(echo $1 | cut -d = -f 2) + ;; + (--*) echo "unknown pkg-config option $1" 1>&2 exit 1 @@ -56,7 +61,7 @@ for pkg in "${pkgs[@]}"; do done | head -n 1) && args_=(--define-variable=prefix="${dest}/usr" "${args_[@]}") fi - #echo @@@ pkg-config "${args_[@]}" "${pkg}" 1>&2 + echo @@@ pkg-config "${args_[@]}" "${pkg}" 1>&2 out=$(pkg-config "${args_[@]}" "${pkg}") || exit $? #echo "=== ${out}" 1>&2 outs+=\ ${out} |