]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: link libbasic and libshared_static into libshared
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Dec 2017 13:19:46 +0000 (14:19 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Jan 2018 11:09:14 +0000 (12:09 +0100)
commit2d4ceca8a5f606beed5f11b0d307913727590c00
tree904c5e73adddd574c9db272c9d1f9909a04e6809
parent4f561ecda9a3704f4eff46b5f2c33dcd8decf8bd
meson: link libbasic and libshared_static into libshared

gcrypt_util_sources had to be moved because otherwise they appeared twice
in libshared.so halfproducts, causing an error.

-fvisibility=default is added to libbasic, libshared_static so that the symbols
appear properly in the exported symbol list in libshared.

The advantage is that files are not compiled twice. When configured with -Dman=false,
the ninja target list is reduced from 1588 to 1347 targets. The difference in compilation
time is small (<10%). I think this is because of -O0 and ccache and multiple cores, and
in different settings the compilation time could be reduced. The main advantage is that
errors and warnings are not reported twice.
meson.build
src/basic/meson.build
src/journal/meson.build
src/shared/meson.build
src/test/meson.build