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>
Wed, 3 Jul 2024 15:25:26 +0000 (17:25 +0200)
commitd0689ee5fbfafa736e6eca89bc80cb2d372f2229
treec7fe8e4b460978b035e80a08d0dd4bf846af2ea8
parent732ed8a84e8b264fccd3f5c0fc68ec2894b6d8ea
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
src/core/meson.build