Disable RVV (vector) on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-11-06 11:32:37 +02:00
parent 67b369b69a
commit c593d8b4df
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 10 additions and 2 deletions

View File

@ -3,7 +3,7 @@
Name: zlib-ng
Version: 2.1.3
Release: 2.0.riscv64%{?dist}
Release: 2.1.riscv64%{?dist}
Summary: Zlib replacement with optimizations
License: zlib
Url: https://github.com/zlib-ng/zlib-ng
@ -31,7 +31,12 @@ developing application that use %{name}.
%build
# zlib-ng uses a different macro for library directory.
%cmake -DWITH_SANITIZERS=ON -DINSTALL_LIB_DIR=%{_libdir}
%cmake \
-DWITH_SANITIZERS=ON \
%ifarch riscv64
-DWITH_RVV=OFF \
%endif
-DINSTALL_LIB_DIR=%{_libdir}
%cmake_build
%check
@ -54,6 +59,9 @@ developing application that use %{name}.
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Mon Nov 06 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2.1.3-2.1.riscv64
- Disable RVV (Vector) on riscv64
* Mon Nov 06 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2.1.3-2.0.riscv64
- Enable riscv64