From 32cecba0b2fbfdf13c4fbc6bce0a345d5d92855c Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 29 Mar 2020 06:52:34 +0200 Subject: [PATCH] cross-aarch64-linux-musl: unrestrict to all 64-bit --- srcpkgs/cross-aarch64-linux-musl/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template index 4f977fd627e..9ca3f08e86b 100644 --- a/srcpkgs/cross-aarch64-linux-musl/template +++ b/srcpkgs/cross-aarch64-linux-musl/template @@ -35,13 +35,20 @@ nopie=yes nodebug=yes create_wrksrc=yes -archs="x86_64* ppc64le" hostmakedepends="tar gcc-objc gcc-go flex perl python3" 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}" +if [ "$XBPS_TARGET_WORDSIZE" != "64" ]; then + broken="64-bit crosstoolchain only available on 64-bit host" +fi + +if [ "$XBPS_TARGET_MACHINE" = "aarch64-musl" ]; then + broken="Can't build crosstoolchain to itself" +fi + _apply_patch() { local args="$1" pname="$(basename $2)"