From 30f22da022fd196b8a319189e13b867e5515619d Mon Sep 17 00:00:00 2001 From: gt7-void Date: Sun, 21 Mar 2021 01:07:12 -0300 Subject: [PATCH] openblas: choose generic target for x86 and x86_64. The current template uses DYNAMIC_ARCH=1 to get multiple versions of some functions to support different cpus. However, it will pick up the cpu it was compiled in as a minimum requirement for the common code. Adding TARGET=GENERIC fixes this, now the common code is compiled for a generic cpu. See #29604 and https://github.com/xianyi/OpenBLAS/issues/3139. --- srcpkgs/openblas/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/openblas/template b/srcpkgs/openblas/template index ea5263838ccb..58a75941be47 100644 --- a/srcpkgs/openblas/template +++ b/srcpkgs/openblas/template @@ -1,7 +1,7 @@ # Template file for 'openblas' pkgname=openblas version=0.3.13 -revision=2 +revision=3 wrksrc="OpenBLAS-${version}" build_style=gnu-makefile make_build_args=" HOSTCC=gcc USE_OPENMP=1" @@ -20,8 +20,8 @@ case "${XBPS_TARGET_MACHINE}" in armv6*) make_build_args+=" TARGET=ARMV6" ;; armv7*) make_build_args+=" TARGET=ARMV7" ;; aarch64*) make_build_args+=" TARGET=ARMV8 DYNAMIC_ARCH=1" ;; - i686*) make_build_args+=" BINARY=32 DYNAMIC_ARCH=1" ;; - x86_64*) make_build_args+=" BINARY=64 DYNAMIC_ARCH=1" ;; + i686*) make_build_args+=" BINARY=32 TARGET=GENERIC DYNAMIC_ARCH=1" ;; + x86_64*) make_build_args+=" BINARY=64 TARGET=GENERIC DYNAMIC_ARCH=1" ;; ppc64le*) make_build_args+=" TARGET=POWER8 DYNAMIC_ARCH=1" ;; ppc64*) make_build_args+=" TARGET=PPC970MP" ;; # dynamic arch broken for