diff --git a/abuild.in b/abuild.in index 01669259d4be65565c54056db3fe1113f2e597c4..b576a0d05441b39f513c364b0770a452bacc4769 100755 --- a/abuild.in +++ b/abuild.in @@ -958,7 +958,8 @@ trace_apk_deps() { # first check if its provided by same apkbuild grep -q -w "^$i" "$dir"/.provides-so 2>/dev/null && continue - if subpkg_provides "$i" || $APK info -q -e "so:$i"; then + if subpkg_provides "$i" || [ "$CBUILD" != "$CHOST" ] \ + || $APK info --quiet --installed "so:$i"; then autodeps="$autodeps so:$i" else missing="$missing $i"