diff options
author | Richard Jones <rjones@redhat.com> | 2010-08-25 11:53:00 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-08-25 17:22:54 +0100 |
commit | a0d514f13d3334b79745d7d1f90a6ac615afa7c2 (patch) | |
tree | 98965e8dbd8363c7add46e57fc4f91ada2a5a7b7 /Makefile.am | |
parent | 27ef6f9171127afd248f38d280cf3d0eae51fdaf (diff) | |
download | libguestfs-a0d514f13d3334b79745d7d1f90a6ac615afa7c2.tar.gz libguestfs-a0d514f13d3334b79745d7d1f90a6ac615afa7c2.tar.xz libguestfs-a0d514f13d3334b79745d7d1f90a6ac615afa7c2.zip |
Include statically linked binaries in the binary distribution.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am index 55e3ed16..a33c91c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -209,9 +209,14 @@ quickcheck: test-tool/libguestfs-test-tool \ --helper test-tool/libguestfs-test-tool-helper -# Binary distribution. -# Note we remove the supermin appliance and adjust some -# directories to make them non-Fedora-specific. +# Mostly static binary distribution. +# +# Some binaries are relinked partially statically. You can make these +# binaries "more static" by making sure that as many foo-static +# packages are installed as possible. +# +# We remove the supermin appliance and adjust some directories to make +# them non-Fedora-specific. BINTMPDIR = /tmp/libguestfs-bin bindist: @@ -219,10 +224,16 @@ bindist: mkdir $(BINTMPDIR) $(MAKE) $(MAKE) DESTDIR=$(BINTMPDIR) install - rm -r $(BINTMPDIR)/$(libdir)/guestfs/supermin.d - rm $(BINTMPDIR)/$(libdir)/guestfs/kmod.whitelist - mv $(BINTMPDIR)/$(prefix)/lib64/* $(BINTMPDIR)/$(libdir) - mv $(BINTMPDIR)/usr/lib64/* $(BINTMPDIR)/$(libdir) + rm -r $(BINTMPDIR)$(libdir)/guestfs/supermin.d + rm $(BINTMPDIR)$(libdir)/guestfs/kmod.whitelist + mv $(BINTMPDIR)$(prefix)/lib64/* $(BINTMPDIR)$(libdir) + mv $(BINTMPDIR)/usr/lib64/* $(BINTMPDIR)$(libdir) -find $(BINTMPDIR) -type d -exec rmdir --ignore-fail-on-non-empty {} \; - (cd $(BINTMPDIR) && tar zcf - .) \ - > libguestfs-$(VERSION)-$(host_cpu).tar.gz + $(MAKE) -C fish guestfish.static + cp fish/guestfish.static $(BINTMPDIR)$(bindir)/guestfish + $(MAKE) -C fuse guestmount.static + cp fuse/guestmount.static $(BINTMPDIR)$(bindir)/guestmount + $(MAKE) -C test-tool libguestfs-test-tool.static + cp test-tool/libguestfs-test-tool.static $(BINTMPDIR)$(bindir)/libguestfs-test-tool + (cd $(BINTMPDIR) && tar cf - .) | \ + gzip -c -9 > libguestfs-$(VERSION)-$(host_cpu).tar.gz |