]> git.ipfire.org Git - thirdparty/util-linux.git/commit
meson: implement building of static programs
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 11 May 2020 10:06:39 +0000 (12:06 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Mar 2021 14:07:27 +0000 (15:07 +0100)
commit69939195bdb8110738fcf5f8893f836be4edc468
tree68703810fbfbab15e711713d07f7e8d4ef6140f5
parentd4c880d5a4339d3865cbd7d30264785cd3794322
meson: implement building of static programs

The whole thing is complicated by the fact that we have two layers
of libraries: e.g. libmount also needs libblkid. If we just tell meson
to make libmount static, this is not enough, because we also need it
to link to a static libblkid. Hence in the case of libs that link to
other libs internally, we need to create a different object with a
a different set of link_with items.

To avoid building the libraries twice, libfdisk and libmount are first
built into an internal "convenience" library, which is then linked into
the static and shared versions as appropriate.
libblkid/meson.build
libfdisk/meson.build
libmount/meson.build
libsmartcols/meson.build
meson.build
meson_options.txt