Without XDR_CFLAGS, compilation on Cygwin fails with:

  CC       libvirt_driver_la-libvirt-stream.lo
In file included from libvirt-stream.c:26:0:
rpc/virnetprotocol.h:9:21: fatal error: rpc/rpc.h: No such file or directory

Signed-off-by: Eric Blake <ebl...@redhat.com>
---

Pushing under the build-breaker rule

 src/Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index e2a2128..cc1fca5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in

-## Copyright (C) 2005-2015 Red Hat, Inc.
+## Copyright (C) 2005-2016 Red Hat, Inc.
 ##
 ## This library is free software; you can redistribute it and/or
 ## modify it under the terms of the GNU Lesser General Public
@@ -1172,7 +1172,7 @@ libvirt_la_BUILT_LIBADD += libvirt_driver.la
 libvirt_driver_la_SOURCES = $(DRIVER_SOURCES)

 libvirt_driver_la_CFLAGS = \
-               $(GNUTLS_CFLAGS) $(CURL_CFLAGS) \
+               $(GNUTLS_CFLAGS) $(CURL_CFLAGS) $(XDR_CFLAGS) \
                -I$(srcdir)/conf $(AM_CFLAGS)
 libvirt_driver_la_LIBADD = \
                $(GNUTLS_LIBS) $(CURL_LIBS) $(DLOPEN_LIBS)
@@ -1364,6 +1364,7 @@ endif ! WITH_DRIVER_MODULES
 libvirt_driver_qemu_impl_la_CFLAGS = \
                $(GNUTLS_CFLAGS) \
                $(LIBNL_CFLAGS) \
+               $(XDR_CFLAGS) \
                -I$(srcdir)/access \
                -I$(srcdir)/conf \
                -I$(srcdir)/secret \
-- 
2.5.5

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to