summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-12-19 14:19:46 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:49:47 +0200
commite97d3ad71e676185d00c1d85b97fae31ce9e19d3 (patch)
tree8e43120e489b1b6e58c5991867b0857be09927a4 /src/test
parenta6c581818f140ba4d91fcd82a009ac074d22968b (diff)
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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/meson.build b/src/test/meson.build
index 2d88a8716..dcdba0ea3 100644
--- a/src/test/meson.build
+++ b/src/test/meson.build
@@ -126,7 +126,8 @@ tests += [
#
# [['src/test/test-dns-domain.c'],
# [libcore,
-# libelogind_network],
+# libshared,
+# libsystemd_network],
# []],
#
# [['src/test/test-boot-timestamps.c'],
@@ -177,7 +178,7 @@ tests += [
[]],
[['src/test/test-copy.c'],
- [libshared_static],
+ [],
[]],
#if 0 /// UNNEEDED in elogind