Richard W.M. Jones
2009-Nov-26 11:03 UTC
[Libguestfs] [PATCH 0/2] Build guestfs_protocol separately in the daemon
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Richard W.M. Jones
2009-Nov-26 11:03 UTC
[Libguestfs] [PATCH 1/2] daemon: Typo generator_build -> generator_built
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora -------------- next part -------------->From 8f08ad43fe2032fcd94247bd39313bab22dbe80d Mon Sep 17 00:00:00 2001From: Richard Jones <rjones at redhat.com> Date: Thu, 26 Nov 2009 10:52:37 +0000 Subject: [PATCH 1/2] daemon: Typo generator_build -> generator_built --- daemon/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 8636891..485f340 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -28,7 +28,7 @@ generator_built = \ .PHONY: force -$(generator_build): $(libsrcdir)/stamp-generator +$(generator_built): $(libsrcdir)/stamp-generator $(libsrcdir)/stamp-generator: force $(MAKE) -C $(libsrcdir) stamp-generator -- 1.6.5.2
Richard W.M. Jones
2009-Nov-26 11:04 UTC
[Libguestfs] [PATCH 2/2] daemon: Link guestfs_protocol.[ch] into the daemon directory.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html -------------- next part -------------->From d7cefd8bdaa53ae1c6172a472d60f3e37ea40089 Mon Sep 17 00:00:00 2001From: Richard Jones <rjones at redhat.com> Date: Thu, 26 Nov 2009 11:01:01 +0000 Subject: [PATCH 2/2] daemon: Link guestfs_protocol.[ch] into the daemon directory. Instead of doing a recursive call into the src/ directory to build the object files, hard link the source files into the daemon directory and build them separately. See: http://www.redhat.com/archives/libguestfs/2009-November/msg00254.html --- .gitignore | 2 ++ daemon/Makefile.am | 29 ++++++++++++++++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1af0b68..6293dd9 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,8 @@ config.sub configure daemon/actions.h daemon/guestfsd +daemon/guestfs_protocol.c +daemon/guestfs_protocol.h daemon/install-sh daemon/missing daemon/names.c diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 485f340..d4eb563 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -32,12 +32,31 @@ $(generator_built): $(libsrcdir)/stamp-generator $(libsrcdir)/stamp-generator: force $(MAKE) -C $(libsrcdir) stamp-generator -BUILT_SOURCES = $(generator_built) +BUILT_SOURCES = \ + $(generator_built) \ + guestfs_protocol.c \ + guestfs_protocol.h EXTRA_DIST = $(BUILT_SOURCES) -$(libsrcdir)/guestfs_protocol.o: force - $(MAKE) -C $(libsrcdir) guestfs_protocol.o +# This convenience library is solely to avoid compiler warnings +# in its generated sources. +noinst_LIBRARIES = libprotocol.a +libprotocol_a_SOURCES = \ + guestfs_protocol.c \ + guestfs_protocol.h +libprotocol_a_CFLAGS + +guestfs_protocol.c: $(libsrcdir)/guestfs_protocol.c + rm -f $@ + ln $< $@ +guestfs_protocol.h: $(libsrcdir)/guestfs_protocol.h + rm -f $@ + ln $< $@ +$(libsrcdir)/guestfs_protocol.c: force + $(MAKE) -C $(libsrcdir) guestfs_protocol.c +$(libsrcdir)/guestfs_protocol.h: force + $(MAKE) -C $(libsrcdir) guestfs_protocol.c noinst_PROGRAMS = guestfsd guestfsd_SOURCES = \ @@ -110,8 +129,8 @@ guestfsd_SOURCES = \ zero.c \ zerofree.c guestfsd_LDADD = \ - $(libsrcdir)/guestfs_protocol.o \ - lib/libgnu.a $(LIB_CLOCK_GETTIME) + libprotocol.a \ + lib/libgnu.a $(LIB_CLOCK_GETTIME) AM_CPPFLAGS = -I$(srcdir)/lib -Ilib guestfsd_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) -- 1.6.5.2
Reasonably Related Threads
- [PATCH 0/9] FOR DISCUSSION ONLY: daemon error handling
- [PATCH 0/5] Add progress notification to upload APIs
- [PATCH 0/6] Simple fixes for cross-compiling the daemon
- [PATCH 0/5] 5 conservative changes to errno handling
- [PATCH 0/9] Enhance virt-resize so it can really expand Linux and Windows guests