]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: allow optional static linking of shared code in udev helpers
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Apr 2017 16:07:12 +0000 (12:07 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 01:47:29 +0000 (21:47 -0400)
commit3a30f21ff8ddbef5eae61d6e4305ec1cd2e4e041
tree3d76451c8aec4bde19bf8bc8792862664e976a04
parentd83f4f506d560fb67add370f49510b9c55c467c8
meson: allow optional static linking of shared code in udev helpers

This makes the helper binaries significantly bigger (in some cases, the final
size depends on link options and optimization level), and is only useful for
distributions which want to provide the option to install udev without systemd.
As the linking is improved, the difference between the columns might shrink,
but it's unlikely that linking libshared statically could ever be more
efficient.

E.g. with -O0, no -flto:
                   (static) (shared)
src/udev/ata_id     999176    85696
src/udev/cdrom_id  1024344   111656
src/udev/collect    990344    81280
src/udev/scsi_id   1023592   115656
src/udev/v4l_id     811736    17744

When linked dynamically, install_rpath must be specified, so add that.
meson.build
meson_options.txt
src/test/meson.build
src/udev/meson.build