Code

Fix link with perfstat
authorManuel Luis Sanmartin Rozada <manuel.luis@gmail.com>
Sat, 29 Sep 2012 20:28:25 +0000 (22:28 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 2 Oct 2012 19:58:58 +0000 (21:58 +0200)
src/Makefile.am

index eef2a6095844545872953bc55de6f096ccfbfc99..b18481447a4c4995fe12fc71e236f62a29e198f7 100644 (file)
@@ -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