From: Ruben Kerkhof Date: Fri, 3 Jun 2016 20:20:43 +0000 (+0200) Subject: xencpu: add missing cppflags and ldflags X-Git-Tag: collectd-5.6.0~264 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6928806cb1d894499430c469cf73e5015acffe48;p=collectd.git xencpu: add missing cppflags and ldflags --- diff --git a/configure.ac b/configure.ac index e3df376a..80a3ddfd 100644 --- a/configure.ac +++ b/configure.ac @@ -4774,6 +4774,10 @@ then CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" + LIBXENCTL_CPPFLAGS="$with_libxenctl_cppflags" + LIBXENCTL_LDFLAGS="$with_libxenctl_ldflags" + AC_SUBST(LIBXENCTL_CPPFLAGS) + AC_SUBST(LIBXENCTL_LDFLAGS) fi # --with-libxmms {{{ diff --git a/src/Makefile.am b/src/Makefile.am index babe3f2c..cb0e1174 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1249,7 +1249,8 @@ endif if BUILD_PLUGIN_XENCPU pkglib_LTLIBRARIES += xencpu.la xencpu_la_SOURCES = xencpu.c -xencpu_la_LDFLAGS = $(PLUGIN_LDFLAGS) +xencpu_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBXENCTL_CPPFLAGS) +xencpu_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(LIBXENCTL_LDFLAGS) xencpu_la_LIBADD = -lxenctrl endif