diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template index 955c811df6..920b01a42c 100644 --- a/srcpkgs/cross-i686-linux-musl/template +++ b/srcpkgs/cross-i686-linux-musl/template @@ -32,6 +32,12 @@ makedepends="libfl-devel zlib-devel gmp-devel mpfr-devel libmpc-devel" nostrip_files="libgcc.a libgcov.a libgcc_eh.a" depends="${pkgname}-libc-${version}_${revision}" +if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then + # No need to build a cross compiler if we are running x86_64-musl. + msg_normal "${pkgname}-${version}: cannot be built on $XBPS_TARGET_MACHINE\n" + exit 0 +fi + _apply_patch() { local pname="$(basename $1)"