]> 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)
committerEric Blake <eblake@redhat.com>
Thu, 3 May 2012 20:53:11 +0000 (14:53 -0600)
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.

tests/Makefile.am

index c4d550fbf86d7b2e8982cb49821606deb13cdab1..fbb756a63ce22fdfceaab54d0084c309b02ca0f3 100644 (file)
@@ -458,7 +458,8 @@ endif
 
 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 = \