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() {