]> 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, 19 Jul 2024 17:06:24 +0000 (20:06 +0300)
CMakeLists.txt
configure.ac

index a02c4c481058c5d6a6f64e31534b005f0480a6f6..40da486e67232c8b0360a0b25ae148c883b4415a 100644 (file)
@@ -1302,7 +1302,7 @@ if(XZ_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 4a277242aa480bcd871881c9fb3b2de80ac0c951..abc84fc228fde2d23eb1d32ed3776aa2bc65c1fb 100644 (file)
@@ -1096,12 +1096,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])
 ])