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

[libvirt] [PATCH] build: fix build --without-remote



When configured --without-remote, the files remote_protocol.[ch]
are not built by src/Makefile, but are still used by daemon/Makefile.
The solution is to copy the implicit rule.

* daemon/Makefile.am (%protocol.c, %protocol.h): Copy from src.
---

Not quite trivial enough to claim the build-breaker rule.

 daemon/Makefile.am |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 8ed29b8..cb3caa2 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -52,6 +52,14 @@ $(srcdir)/qemu_dispatch.h: $(srcdir)/../src/rpc/gendispatch.pl \
 	$(AM_V_GEN)perl -w $(srcdir)/../src/rpc/gendispatch.pl -b qemu \
 	  $(QEMU_PROTOCOL) > $@

+%protocol.c: %protocol.x %protocol.h $(srcdir)/../src/rpc/genprotocol.pl
+	$(AM_V_GEN)perl -w $(srcdir)/../src/rpc/genprotocol.pl $(RPCGEN) -c \
+	       $< $@
+
+%protocol.h: %protocol.x $(srcdir)/../src/rpc/genprotocol.pl
+	$(AM_V_GEN)perl -w $(srcdir)/../src/rpc/genprotocol.pl $(RPCGEN) -h \
+	       $< $@
+
 if WITH_LIBVIRTD

 man8_MANS = libvirtd.8
-- 
1.7.4.4


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