Code

xencpu: add missing cppflags and ldflags
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 20:20:43 +0000 (22:20 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 20:20:43 +0000 (22:20 +0200)
configure.ac
src/Makefile.am

index e3df376a89748778117fdc04ef7889d408a0a354..80a3ddfd051a7b582eb8792a4aa1a13b414fc067 100644 (file)
@@ -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 {{{
index babe3f2c0d8623f1e2db3d8cbe30483353eb4d7d..cb0e1174949a090f12db1681288f359600c13508 100644 (file)
@@ -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