From ff9178a96d87b6155e00cdd5e9763a91d3bce452 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 25 Jan 2019 19:15:42 -0200 Subject: [PATCH] chafa: fix cross --- srcpkgs/chafa/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/chafa/template b/srcpkgs/chafa/template index caa953ab37a..f7ef49009b6 100644 --- a/srcpkgs/chafa/template +++ b/srcpkgs/chafa/template @@ -11,7 +11,12 @@ license="LGPL-3.0-or-later" homepage="https://hpjansson.org/chafa/" distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz" checksum=49d491a566a22daf56c51c043259f1373a1b1125d5c1c1fe321f7c25ca178e01 -nocross="configure: error: cannot run test program while cross compiling" + +case "$XBPS_TARGET_MACHINE" in + x86_64*|i686*) ;; + *) configure_args+=" ax_cv_gcc_check_x86_cpu_init=no + ax_cv_gcc_check_x86_cpu_supports=no" ;; +esac chafa-devel_package() { depends="${makedepends} ${sourcepkg}>=${version}_${revision}"