]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: use $(MATH_LIBS) instead of -lm for hwclock
authorKarel Zak <kzak@redhat.com>
Thu, 16 Apr 2026 13:15:20 +0000 (15:15 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Apr 2026 09:16:23 +0000 (11:16 +0200)
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 <kzak@redhat.com>
sys-utils/Makemodule.am

index ce91468e641b8798b628229f44426a9b0e3bb936..15be9544717af1b5da70f354761f3c0a77638067 100644 (file)
@@ -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 += \