]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix build failure with mismatched pclmul
authorPádraig Brady <P@draigBrady.com>
Mon, 22 Sep 2025 19:46:33 +0000 (20:46 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 23 Sep 2025 19:28:19 +0000 (20:28 +0100)
* src/cksum.c (pclmul_supported): In the case where
gnulib has pclmul enabled but coreutils does not,
ensure we don't reference the coreutils pclmul function.
Addresses https://bugs.gnu.org/79491

src/cksum.c

index 3e009febd623b793176ec44b0e6d8acab6744a96..fba33f688d31f02aa12e94f5b0ef7a1d9f7f7b54 100644 (file)
@@ -152,8 +152,10 @@ pclmul_supported (void)
            (pclmul_enabled
             ? _("using pclmul hardware support")
             : _("pclmul support not detected")));
+#  if USE_PCLMUL_CRC32
   if (pclmul_enabled)
     return cksum_pclmul;
+#  endif
 # endif
 
   return nullptr;