flintlib: only enable openblas where supported

This commit is contained in:
q66 2022-05-09 04:44:24 +02:00
parent 90274fef20
commit 91758832bb
1 changed files with 5 additions and 1 deletions

View File

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