diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template index 362eaa1d709..81090b3ee65 100644 --- a/srcpkgs/cross-powerpc64-linux-musl/template +++ b/srcpkgs/cross-powerpc64-linux-musl/template @@ -37,7 +37,14 @@ makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel isl15-devel" nostrip_files="libcaf_single.a libgcc.a libgcov.a libgcc_eh.a libgnarl_pic.a libgnarl.a libgnat_pic.a libgnat.a" depends="${pkgname}-libc-${version}_${revision}" -archs="x86_64* ppc64le ppc64" + +if [ "$XBPS_TARGET_WORDSIZE" != "64" ]; then + broken="64-bit crosstoolchain only available on 64-bit host" +fi + +if [ "$XBPS_TARGET_MACHINE" = "ppc64-musl" ]; then + broken="Can't build crosstoolchain to itself" +fi _apply_patch() { local args="$1" pname="$(basename $2)"