From 4284a4dab3a1e7c2481b8c16d4953e9b8f491a86 Mon Sep 17 00:00:00 2001 From: Manuel Luis Sanmartin Rozada Date: Sat, 29 Sep 2012 22:28:25 +0200 Subject: [PATCH] Fix link with perfstat --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2