meson: build libsystemd-core via an intermediate static library
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Jul 2024 15:03:26 +0000 (17:03 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 Jul 2024 17:26:15 +0000 (19:26 +0200)
commitc3b4032fc3153684c9917f23e08e2928f8972f0d
tree477c0777b1ff2be2f040e40c4f003f67618a7f9f
parent9be2fe707e187a8fba85e82ee94ae63c9424523d
meson: build libsystemd-core via an intermediate static library

By itself, this is not useful. I'm making this a separate commit to
make debugging easier. It turns out that meson does static libraries
using references, so the "static library" a tiny stub stub that refers
to the object files on disk and this has negligible cost:
$ ls -lhd build/src/core/libsystemd-core-257.{a,so}
-rw-r--r-- 1 zbyszek zbyszek  36K Jul  3 16:54 build/src/core/libsystemd-core-257.a
-rwxr-xr-x 1 zbyszek zbyszek 6.1M Jul  3 16:54 build/src/core/libsystemd-core-257.so

(cherry picked from commit d0689ee5fbfafa736e6eca89bc80cb2d372f2229)
src/core/meson.build