[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] build: fix build on cygwin



Now that tests are built unconditionally, this cases 'make' to fail
on cygwin (previously, only 'make check' failed), since on cygwin,
<rpc/rpc.h> lives in a different directory than /usr/include.

* tests/Makefile.am (virnetmessagetest_CFLAGS): Find rpc headers.
---

Pushing under the build-breaker rule.

 tests/Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index c4d550f..fbb756a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -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 = \
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]