From: Karel Zak Date: Thu, 16 Apr 2026 13:15:20 +0000 (+0200) Subject: autotools: use $(MATH_LIBS) instead of -lm for hwclock X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5779d9562d46ff4793e929e6cdde723513beea3a;p=thirdparty%2Futil-linux.git autotools: use $(MATH_LIBS) instead of -lm for hwclock Use the variable set by AC_CHECK_LIB in configure.ac rather than hardcoding -lm, consistent with how other utilities use $(MATH_LIBS). Signed-off-by: Karel Zak --- diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index ce91468e6..15be95447 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -565,7 +565,7 @@ if USE_HWCLOCK_GPLv3_DATETIME hwclock_SOURCES += \ sys-utils/hwclock-parse-date.y endif -hwclock_LDADD = $(LDADD) libcommon.la -lm +hwclock_LDADD = $(LDADD) libcommon.la $(MATH_LIBS) hwclock_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/sys-utils if USE_HWCLOCK_CMOS hwclock_SOURCES += \