diff --git a/abuild.in b/abuild.in index db82cfd1e7653f0d8644d68915b8ff169eb0389e..883c66122c52e8c08dfeeacd02cf43b6c692eb86 100644 --- a/abuild.in +++ b/abuild.in @@ -1812,7 +1812,7 @@ builddeps() { --simulate --quiet $builddeps || return 1 $SUDO_APK add --repository "$abuildrepo" $apk_opt_wait \ --virtual .makedepends-$pkgname $builddeps || return 1 - if [ -n "$hostdeps" ]; then + if cross_compiling; then $SUDO_APK add --root "$CBUILDROOT" --repository "$abuildrepo" $apk_opt_wait \ --simulate --quiet $hostdeps || return 1 $SUDO_APK add --root "$CBUILDROOT" --repository "$abuildrepo" $apk_opt_wait \