--- Makefile.in.orig	2025-01-21 23:56:39 UTC
+++ Makefile.in
@@ -2749,7 +2749,7 @@ LD_BASIC_ADD = lib/libcyrus.la lib/libcyrus_min.la ${L
 # MD5 algorithms, without needing SSL.  Currently we have no way of
 # minimally linking such code.
 LD_BASIC_ADD = lib/libcyrus.la lib/libcyrus_min.la ${LIBS} \
-    ${LIB_SASL} $(SSL_LIBS) $(GCOV_LIBS)
+    ${LIB_SASL} $(SSL_LIBS) $(GCOV_LIBS) -lm
 
 
 # UTILITY is the libraries that utility programs which use Cyrus'
