]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
IBM zSystems: Hardcode HWCAP_S390_VXRS
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 9 Aug 2024 08:29:20 +0000 (10:29 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 16 Aug 2024 09:52:11 +0000 (11:52 +0200)
commitf858914696a04cd1482f00db1e044063be0026ea
tree077993ecc5f677133fc82ae48879ddaf6a7f5f5a
parent2c801bd43ac6dfb676def2b614e5c10ba2f1ad79
IBM zSystems: Hardcode HWCAP_S390_VXRS

Compiling zlib-ng with glibc 2.17 (minimum version still supported by
crosstool-ng) fails due to the lack of HWCAP_S390_VX - it was
introduced in glibc 2.23.

Strictly speaking, this is a problem with the feature detection logic
in cmake. However, it's not worth disabling the s390x vectorized CRC32
if the hwcap constant is missing and the compiler intrinsics are
available.

So fix by hardcoding the constant. It's a part of the kernel ABI,
which does not change.
arch/s390/s390_features.c
cmake/detect-intrinsics.cmake