]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix build on cygwin
authorEric Blake <eblake@redhat.com>
Thu, 3 May 2012 20:39:19 +0000 (14:39 -0600)
committerCole Robinson <crobinso@redhat.com>
Thu, 7 Jun 2012 22:15:11 +0000 (18:15 -0400)
On cygwin, <rpc/rpc.h> lives in a different directory than
/usr/include, so anything that uses it must modify CFLAGS.  This
previously tripped up just 'make check', but now that we build
all test programs unconditionally, it also trips up 'make'.

* tests/Makefile.am (virnetmessagetest_CFLAGS): Find rpc headers.
(cherry picked from commit c898263826794ffded3301baafcf15d268657021)

tests/Makefile.am

index dd8bf4f15720b72a07376edac0de8b3f1b3c0cbe..fbc59e0c5bb557fc7b4d8c10112de1e1de0c8535 100644 (file)
@@ -447,7 +447,8 @@ commandhelper_LDADD = $(LDADDS)
 
 virnetmessagetest_SOURCES = \
        virnetmessagetest.c testutils.h testutils.c
-virnetmessagetest_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\"" $(AM_CFLAGS)
+virnetmessagetest_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\"" \
+               $(XDR_CFLAGS) $(AM_CFLAGS)
 virnetmessagetest_LDADD = ../src/libvirt-net-rpc.la $(LDADDS)
 
 virnetsockettest_SOURCES = \