summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1a8429)
raw | patch | inline | side by side (parent: f1a8429)
author | Thomas Jost <schnouki@schnouki.net> | |
Wed, 4 Jan 2017 12:27:57 +0000 (13:27 +0100) | ||
committer | GitHub <noreply@github.com> | |
Wed, 4 Jan 2017 12:27:57 +0000 (13:27 +0100) |
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 | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
index 3460cf601e0a9b4f6bf46c85e4b5ad11acb87fcc..323e17c5293bf6d8187e91ec88bf2e7cd21bef1f 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
pkglib_LTLIBRARIES += chrony.la
chrony_la_SOURCES = src/chrony.c
chrony_la_LDFLAGS = $(PLUGIN_LDFLAGS)
+chrony_la_LIBADD = -lm
endif
if BUILD_PLUGIN_CONNTRACK