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.
This commit is contained in:
parent
aa6b71e803
commit
1a3d080613
1 changed files with 3 additions and 3 deletions
|
@ -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 <power6
|
||||
ppc*) make_build_args+=" TARGET=PPCG4" ;;
|
||||
|
|
Loading…
Reference in a new issue