--- Makefile.in.orig	2019-11-14 23:10:03 UTC
+++ Makefile.in
@@ -2348,7 +2348,7 @@ com_err_et_libcyrus_com_err_la_CFLAGS = $(AM_CFLAGS) $
 # 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'
