summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-06-12 16:52:57 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-06-29 16:51:52 +0200
commitb01f31954f1c7c4601925173ae2638b572224e9a (patch)
tree1eb4c844727641e5f2682539f9f127581b4b82df /src/libsystemd/meson.build
parentjournal: Fix missing parenthesis (diff)
downloadsystemd-b01f31954f1c7c4601925173ae2638b572224e9a.tar.xz
systemd-b01f31954f1c7c4601925173ae2638b572224e9a.zip
Turn mempool_enabled() into a weak symbol
Before we had the following scheme: mempool_enabled() would check mempool_use_allowed, and libsystemd-shared would be linked with a .c file that provides mempool_use_allowed=true, while other things would linked with a different .c file with mempool_use_allowed=false. In the new scheme, mempool_enabled() itself is a weak symbol. If it's not found, we assume false. So it only needs to be provided for libsystemd-shared, where it can return false or true. test-set-disable-mempool is libshared, so it gets the symbol. But then we actually disable the mempool via envvar. mempool_enable() is called to check its return value directly.
Diffstat (limited to 'src/libsystemd/meson.build')
-rw-r--r--src/libsystemd/meson.build1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsystemd/meson.build b/src/libsystemd/meson.build
index 2701efc8f9..055fa11ede 100644
--- a/src/libsystemd/meson.build
+++ b/src/libsystemd/meson.build
@@ -158,7 +158,6 @@ libsystemd_sources = files(
'sd-utf8/sd-utf8.c',
) + sd_journal_sources + id128_sources + sd_daemon_sources + sd_event_sources + sd_login_sources
-disable_mempool_c = files('disable-mempool.c')
libsystemd_c_args = ['-fvisibility=default']