]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: use XDR_CFLAGS for Cygwin build
authorEric Blake <eblake@redhat.com>
Sat, 6 Aug 2016 13:27:03 +0000 (07:27 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 6 Aug 2016 13:27:03 +0000 (07:27 -0600)
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 <eblake@redhat.com>
src/Makefile.am

index e2a2128fe92732bc24a3d793320b81eea05ac85e..cc1fca531f987b62b80c561cdd21e26ab831ca10 100644 (file)
@@ -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 \