diff options
-rw-r--r-- | lib/deps.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/deps.sh b/lib/deps.sh index 5ec4ccd..5584e65 100644 --- a/lib/deps.sh +++ b/lib/deps.sh @@ -163,17 +163,20 @@ ob_parse_dep() ob_reduce_deps() { - _ob_local _obrd_opt _obrd_host_arch _obrd_deps \ + _ob_local _obrd_opt _obrd_host_arch _obrd_host_plat _obrd_deps \ _obrd_orig_ifs _obrd_dep_and _obrd_dep_or \ _obrd_dep_list _obrd_dep_or_list _obrd_dep _obrd_union='false' - while getopts 'a:u' _obrd_opt; do + while getopts 'a:P:u' _obrd_opt; do case "${_obrd_opt}" in a) _obrd_host_arch="${OPTARG}" ;; + P) + _obrd_host_plat="${OPTARG}" + ;; u) _obrd_union='true' ;; @@ -202,7 +205,7 @@ ob_reduce_deps() for _obrd_dep_or in ${_obrd_dep_and}; do IFS="${_obrd_orig_ifs}" _obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \ - "${_obrd_dep_or}")" + -P "${_obrd_host_plat}" "${_obrd_dep_or}")" if [ -n "${_obrd_dep}" ]; then if [ -n "${_obrd_dep_or_list}" ]; then _obrd_dep_or_list="${_obrd_dep_or_list} | " @@ -218,7 +221,7 @@ ob_reduce_deps() fi else _obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \ - "${_obrd_dep_and}")" + -P "${_obrd_host_plat}" "${_obrd_dep_and}")" if [ -n "${_obrd_dep}" ]; then if [ -n "${_obrd_dep_list}" ]; then _obrd_dep_list="${_obrd_dep_list}, " |