From a8863ce521174e294432961ce10dc109509811b8 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 15 Apr 2023 03:54:19 +0000 Subject: [PATCH] community/openblas: fix --- community/openblas/PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/community/openblas/PKGBUILD b/community/openblas/PKGBUILD index a47399201..9ae1b72ab 100644 --- a/community/openblas/PKGBUILD +++ b/community/openblas/PKGBUILD @@ -3,6 +3,7 @@ # ALARM: Kevin Mihelich # - set build targets +# - disable dynamic arch on v8, FTBFS starting 0.3.23 pkgbase=openblas pkgname=(openblas openblas64) @@ -21,8 +22,8 @@ source=(${_pkgname}-v${pkgver}.tar.gz::https://github.com/xianyi/OpenBLAS/archiv sha512sums=('ea64c693e57eb63cc2a88e4d6ab2d8cf9ab84ae6a15048fb12090a3570dd41053e62e99c1ff9d3e02dd67ca93233591ab41b8c017d06585d0a69222e1ad3023f') build() { - [[ $CARCH == "aarch64" ]] && CORE="ARMV8" - [[ $CARCH == "armv7h" ]] && CORE="ARMV7" + [[ $CARCH == "aarch64" ]] && CORE="ARMV8" && DYN="OFF" + [[ $CARCH == "armv7h" ]] && CORE="ARMV7" && DYN="ON" cmake -B build -S $_pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -35,7 +36,7 @@ build() { -DNO_WARMUP=1 \ -DCORE=$CORE \ -DNUM_THREADS=64 \ - -DDYNAMIC_ARCH=ON + -DDYNAMIC_ARCH=$DYN cmake --build build cmake -B build64 -S $_pkgname-$pkgver \ @@ -49,7 +50,7 @@ build() { -DNO_WARMUP=1 \ -DCORE=$CORE \ -DNUM_THREADS=64 \ - -DDYNAMIC_ARCH=ON \ + -DDYNAMIC_ARCH=$DYN \ -DINTERFACE64=1 cmake --build build64 }