From bc0a95fd13bd1d033f02d45e537aa48b6f0de275 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 25 Oct 2012 16:40:00 -0400 Subject: Reduce platforms in ob_reduce_deps(). --- 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}, " -- cgit v0.9.1