mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/openblas: fix
This commit is contained in:
parent
293645729d
commit
a8863ce521
1 changed files with 5 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - 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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue