From 9c3ed6462c15fd1cb664cd0ec2a5efb289aa1af6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 16:09:10 +0200 Subject: [PATCH] stats plugin: Link with libm (-lm). Fixes a bug reported by @Tenzer: symbol lookup error: /usr/lib/collectd/statsd.so: undefined symbol: log --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index c80f4bf7..62f98751 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1095,7 +1095,7 @@ pkglib_LTLIBRARIES += statsd.la statsd_la_SOURCES = statsd.c \ utils_latency.h utils_latency.c statsd_la_LDFLAGS = -module -avoid-version -statsd_la_LIBADD = -lpthread +statsd_la_LIBADD = -lpthread -lm collectd_LDADD += "-dlopen" statsd.la collectd_DEPENDENCIES += statsd.la endif -- 2.30.2