From f4ee10a2829e8b10f749de59b2885efb959e7ffa Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 9 Apr 2017 14:08:53 -0400 Subject: meson: create a static version of libshared and link libcore and some tests to it This is what autoconf-based build does, and it makes test-bus-error and test-engine able to access the bus error mapping table. OTOH, this is a heavy price to pay: it would be excellent to link libcore.a to libsystemd-shared-NNN.so. Otherwise we duplicate the same code in 'systemd' and 'libsystemd-shared-NNN.so'. -rwxrwxr-x. 1 4075544 Apr 6 20:30 systemd* <-- libcore linked against libsystemd-shared.so -rwxrwxr-x. 1 5596504 Apr 9 14:07 systemd* <-- libcore linked against libsystemd-shared.a v2: - update for 6b5cf3ea621a5bfd218cd2249e066a52c0e73657 --- src/shared/meson.build | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/shared') diff --git a/src/shared/meson.build b/src/shared/meson.build index bbe08e983b..3024db6a44 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -144,6 +144,24 @@ libshared = shared_library( install : true, install_dir : rootlibexecdir) +libshared_static = static_library( + libshared_name, + shared_sources, + basic_sources, + include_directories : includes, + dependencies : [threads, + librt, + libcap, + libacl, + libcryptsetup, + libiptc, + libseccomp, + libselinux, + libidn, + libxz, + liblz4, + libblkid]) + if conf.get('HAVE_LIBIPTC', 0) == 1 libfirewall = static_library( 'firewall', -- cgit v1.2.3-54-g00ecf