]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: Comment that elf_aux_info(3) will be available on OpenBSD >= 7.6
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 19 Jul 2024 17:02:43 +0000 (20:02 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Sep 2024 16:33:20 +0000 (19:33 +0300)
(cherry picked from commit bf901dee5d4c46609645e50311c0cb2dfdcf9738)

CMakeLists.txt
configure.ac

index dbb5eda6d1248df6e5170a01d576066a71966ce3..edba0a079ebe9329b9820cd8af83dbbefaef5a93 100644 (file)
@@ -1216,7 +1216,7 @@ if(ALLOW_ARM64_CRC32)
         check_symbol_exists(getauxval sys/auxv.h HAVE_GETAUXVAL)
         tuklib_add_definition_if(liblzma HAVE_GETAUXVAL)
 
-        # elf_aux_info() is supported on FreeBSD.
+        # elf_aux_info() is supported on FreeBSD and OpenBSD >= 7.6.
         check_symbol_exists(elf_aux_info sys/auxv.h HAVE_ELF_AUX_INFO)
         tuklib_add_definition_if(liblzma HAVE_ELF_AUX_INFO)
 
index 7bdd2b7fbb6cfeca9f6cf7894c611d34cde04a1a..08c9fcd89a7239e03f98532f92bfd4aee662c1b9 100644 (file)
@@ -1081,12 +1081,17 @@ int main(void)
 ])
 
 # Check for ARM64 CRC32 instruction runtime detection.
-# getauxval() is supported on Linux, elf_aux_info() on FreeBSD, and
-# sysctlbyname("hw.optional.armv8_crc32", ...) is supported on Darwin
-# (macOS, iOS, etc.). Note that sysctlbyname() is supported on FreeBSD,
-# NetBSD, and possibly others too but the string is specific to Apple OSes.
-# The C code is responsible for checking defined(__APPLE__) before using
-# sysctlbyname("hw.optional.armv8_crc32", ...).
+#
+#   - getauxval() is supported on Linux.
+#
+#   - elf_aux_info() is supported on FreeBSD and OpenBSD >= 7.6.
+#
+#   - sysctlbyname("hw.optional.armv8_crc32", ...) is supported on Darwin
+#     (macOS, iOS, etc.). Note that sysctlbyname() is supported on FreeBSD,
+#     NetBSD, and possibly others too but the string is specific to Apple
+#     OSes. The C code is responsible for checking defined(__APPLE__)
+#     before using sysctlbyname("hw.optional.armv8_crc32", ...).
+#
 AS_IF([test "x$enable_arm64_crc32" = xyes], [
        AC_CHECK_FUNCS([getauxval elf_aux_info sysctlbyname], [break])
 ])