From 91758832bb99c6cafbb1982592a301bc51094165 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 9 May 2022 04:44:24 +0200 Subject: [PATCH] flintlib: only enable openblas where supported --- srcpkgs/flintlib/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/flintlib/template b/srcpkgs/flintlib/template index 57a4a2de4f4..968dbcb525c 100644 --- a/srcpkgs/flintlib/template +++ b/srcpkgs/flintlib/template @@ -18,12 +18,16 @@ checksum=5911fedff911100f15781f35e3a4fa934fe60e4aea02a8c10cc8918101c1eed8 build_options="ntl openblas" desc_option_ntl="enable NTL support" -build_options_default="openblas" +build_options_default="" if [ -z "$CROSS_BUILD" ]; then build_options_default+=" ntl" fi +case "$XBPS_TARGET_MACHINE" in + x86_64*|i686*|aarch64*|arm*|ppc64*) build_options_default+=" openblas";; +esac + CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t flintlib-devel_package() {