From: Manuel Luis Sanmartin Rozada Date: Sat, 29 Sep 2012 20:28:25 +0000 (+0200) Subject: Fix link with perfstat X-Git-Tag: collectd-5.2.0~51 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4284a4dab3a1e7c2481b8c16d4953e9b8f491a86;p=collectd.git Fix link with perfstat --- diff --git a/src/Makefile.am b/src/Makefile.am index eef2a609..b1848144 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -213,6 +213,10 @@ if BUILD_PLUGIN_CONTEXTSWITCH pkglib_LTLIBRARIES += contextswitch.la contextswitch_la_SOURCES = contextswitch.c contextswitch_la_LDFLAGS = -module -avoid-version +contextswitch_la_LIBADD = +if BUILD_WITH_PERFSTAT +contextswitch_la_LIBADD += -lperfstat +endif collectd_LDADD += "-dlopen" contextswitch.la collectd_DEPENDENCIES += contextswitch.la endif