Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c93c81c630 | ||
|
|
d5f7e25717 | ||
|
|
f8484b5212 | ||
|
|
c8c1c8f78d | ||
|
|
39ebff5723 |
1 changed files with 14 additions and 1 deletions
15
zlib-ng.spec
15
zlib-ng.spec
|
|
@ -98,12 +98,25 @@ cat <<_EOF_
|
|||
_EOF_
|
||||
|
||||
# zlib-ng uses a different macro for library directory.
|
||||
%global cmake_param %{?with_sanitizers:-DWITH_SANITIZER=ON} -DWITH_RVV=OFF
|
||||
%global cmake_param %{?with_sanitizers:-DWITH_SANITIZER=ON}
|
||||
|
||||
%ifarch riscv64
|
||||
%global cmake_param %cmake_param -DWITH_RVV=OFF
|
||||
%endif
|
||||
|
||||
%ifarch s390x
|
||||
%global cmake_param %cmake_param -DWITH_DFLTCC_DEFLATE=ON -DWITH_DFLTCC_INFLATE=ON
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} >= 10
|
||||
%ifarch x86_64
|
||||
# RHEL 10 has x86_64-v3 as baseline, turning the CRC32 Chorba optimization
|
||||
# unnecessary.
|
||||
# More info: https://github.com/zlib-ng/zlib-ng/releases/tag/2.3.1
|
||||
%global cmake_param %cmake_param -DWITH_CRC32_CHORBA=OFF
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# Setting __cmake_builddir is not necessary in this step, but do it anyway for symmetry.
|
||||
%global __cmake_builddir %{_vpath_builddir}
|
||||
%cmake %{cmake_param}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue