src/Makefile: Link the ping plugin against libm.
authorSebastian Harl <sh@tokkee.org>
Sat, 6 Jun 2009 20:13:03 +0000 (22:13 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 2 Jul 2009 13:16:11 +0000 (15:16 +0200)
The plugin now uses sqrt() which is provided by the math lib.

src/Makefile.am

index 7c65c1c..aca1af7 100644 (file)
@@ -695,7 +695,7 @@ pkglib_LTLIBRARIES += ping.la
 ping_la_SOURCES = ping.c
 ping_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBOPING_CPPFLAGS)
 ping_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBOPING_LDFLAGS)
-ping_la_LIBADD = -loping
+ping_la_LIBADD = -loping -lm
 collectd_LDADD += "-dlopen" ping.la
 collectd_DEPENDENCIES += ping.la
 endif