[Libguestfs] [PATCH 14/16] customize, mllib: use the libvirt CFLAGS

Pino Toscano ptoscano at redhat.com
Thu Oct 23 18:18:42 UTC 2014


uri-c.c and perl_edit-c.c end up (directly or indirectly) including
guestfs-internal-frontend.h, which in turns includes libvirt/libvirt.h;
hence, make sure to use the libvirt CFLAGS.
---
 customize/Makefile.am | 1 +
 mllib/Makefile.am     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/customize/Makefile.am b/customize/Makefile.am
index 0ea8d39..39759dc 100644
--- a/customize/Makefile.am
+++ b/customize/Makefile.am
@@ -150,6 +150,7 @@ endif
 # we do, so we have to provide it ourselves.
 
 DEFAULT_INCLUDES = \
+	$(LIBVIRT_CFLAGS) \
 	-I. \
 	-I$(top_builddir) \
 	-I$(shell $(OCAMLC) -where) \
diff --git a/mllib/Makefile.am b/mllib/Makefile.am
index 903a77d..2ad4eaa 100644
--- a/mllib/Makefile.am
+++ b/mllib/Makefile.am
@@ -137,6 +137,7 @@ libdir.ml: Makefile
 # we do, so we have to provide it ourselves.
 
 DEFAULT_INCLUDES = \
+	$(LIBVIRT_CFLAGS) \
 	-I. \
 	-I$(top_builddir) \
 	-I$(shell $(OCAMLC) -where) \
-- 
1.9.3




More information about the Libguestfs mailing list