]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: don't statically link code that's already in libvirt.so
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 16 May 2019 08:27:45 +0000 (09:27 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 May 2019 13:34:45 +0000 (14:34 +0100)
commite5df4edefa6b6b9db2ef620a1f16a901afda0274
treec416448fbe8d7d692886f64f79357c2ad3b98396
parent3c8d5762a9fcf3f7d23a41d0b49def0387ecddf7
src: don't statically link code that's already in libvirt.so

Various binaries are statically linking to libvirt_util.la and
other intermediate libraries we build. These intermediate libs
all get built into the main libvirt.so shared library eventually,
so we can dynamically link to that instead and reduce the on disk
footprint.

In libvirt-daemon RPM:

            virtlockd: 1.6 MB -> 153 KB
             virtlogd: 1.6 MB -> 157 KB
     libvirt_iohelper: 937 KB -> 23 KB

In libvirt-daemon-driver-network RPM:

 libvirt_leaseshelper: 940 KB -> 26 KB

In libvirt-daemon-driver-storage-core RPM:

   libvirt_parthelper: 926 KB -> 21 KB

IOW, about 5.6 MB total space saving in a build done on Fedora 30
x86_64 architecture.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/Makefile.am
src/libvirt_remote.syms
src/locking/Makefile.inc.am
src/logging/Makefile.inc.am
src/network/Makefile.inc.am
src/security/Makefile.inc.am
src/storage/Makefile.inc.am