From: Thomas Jost Date: Wed, 4 Jan 2017 12:27:57 +0000 (+0100) Subject: chrony: add missing build flag X-Git-Tag: collectd-5.8.0~242 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=211bd48433190a4623d38ec70bcd5266e880066c;p=collectd.git chrony: add missing build flag The chrony plugin uses the `pow()` math function so it needs to be built with `-lm`. Otherwise collectd crashes with `symbol lookup error: /usr/lib/collectd/chrony.so: undefined symbol: pow`. --- diff --git a/Makefile.am b/Makefile.am index 3460cf60..323e17c5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -609,6 +609,7 @@ if BUILD_PLUGIN_CHRONY pkglib_LTLIBRARIES += chrony.la chrony_la_SOURCES = src/chrony.c chrony_la_LDFLAGS = $(PLUGIN_LDFLAGS) +chrony_la_LIBADD = -lm endif if BUILD_PLUGIN_CONNTRACK