[libvirt] [PATCH v2] src: don't statically link code that's already in libvirt.so

Ján Tomko jtomko at redhat.com
Fri May 17 10:42:08 UTC 2019


On Fri, May 17, 2019 at 11:15:48AM +0100, Daniel P. Berrangé wrote:
>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
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> src/Makefile.am              | 2 +-
> src/libvirt_remote.syms      | 1 +
> src/locking/Makefile.inc.am  | 4 +---
> src/logging/Makefile.inc.am  | 4 +---
> src/network/Makefile.inc.am  | 2 +-
> src/security/Makefile.inc.am | 2 --
> src/storage/Makefile.inc.am  | 2 +-
> 7 files changed, 6 insertions(+), 11 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190517/cf5aa299/attachment-0001.sig>


More information about the libvir-list mailing list