diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template index 89beb9f5af8..af78ecf2164 100644 --- a/srcpkgs/cross-powerpc-linux-gnu/template +++ b/srcpkgs/cross-powerpc-linux-gnu/template @@ -34,7 +34,14 @@ makedepends="isl15-devel libmpc-devel zlib-devel" depends="${pkgname}-libc-${version}_${revision}" nostrip_files="libcaf_single.a libgcc.a libgcov.a libgcc_eh.a libgnarl_pic.a libgnarl.a libgnat_pic.a libgnat.a" -archs="i686 x86_64 ppc64le ppc64" + +if [ "$XBPS_TARGET_LIBC" != "glibc" ]; then + broken="glibc crosstoolchain only available on glibc" +fi + +if [ "$XBPS_TARGET_MACHINE" = "ppc" ]; then + broken="Can't build crosstoolchain to itself" +fi _apply_patch() { local args="$1" pname="$(basename $2)"