From e28cfeb11debd81da245bb3d7d172bf810293ace Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 3 May 2012 14:39:19 -0600 Subject: [PATCH] build: fix build on cygwin On cygwin, 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index dd8bf4f157..fbc59e0c5b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 = \