public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] buildsys: hwclock requires -lm
@ 2014-12-08 20:30 Cristian Rodríguez
  2014-12-09  8:22 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Rodríguez @ 2014-12-08 20:30 UTC (permalink / raw)
  To: util-linux; +Cc: Cristian Rodríguez

hwclock uses fabs and therefore needs libm, otherwise a linking
error ocurrs when building with -fno-builtin.
---
 sys-utils/Makemodule.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am
index 25e1ad7..ef793c1 100644
--- a/sys-utils/Makemodule.am
+++ b/sys-utils/Makemodule.am
@@ -370,7 +370,7 @@ hwclock_SOURCES = \
 if LINUX
 hwclock_SOURCES += sys-utils/hwclock-rtc.c
 endif
-hwclock_LDADD = $(LDADD) libcommon.la
+hwclock_LDADD = $(LDADD) libcommon.la -lm
 if HAVE_AUDIT
 hwclock_LDADD += -laudit
 endif
-- 
2.2.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-09  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-08 20:30 [PATCH] buildsys: hwclock requires -lm Cristian Rodríguez
2014-12-09  8:22 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox