From 211bd48433190a4623d38ec70bcd5266e880066c Mon Sep 17 00:00:00 2001 From: Thomas Jost Date: Wed, 4 Jan 2017 13:27:57 +0100 Subject: [PATCH] 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`. --- Makefile.am | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.0