diff --git a/common/xbps-src/shutils/build_dependencies.sh b/common/xbps-src/shutils/build_dependencies.sh index 2314766d96c..55a8ee635cd 100644 --- a/common/xbps-src/shutils/build_dependencies.sh +++ b/common/xbps-src/shutils/build_dependencies.sh @@ -240,7 +240,7 @@ install_pkg_deps() { continue else echo " [host] ${i}: not found." - if [ -z "$CROSS_BUILD" ]; then + if [ -z "$cross" ]; then if [ "${_realpkg}" = "$targetpkg" ]; then msg_error "${pkg}: [host] build loop detected: ${_realpkg} <-> ${targetpkg} [depends on itself]\n" elif [ "${_realpkg}" = "$pkg" ]; then