public_programs += systemctl
if conf.get('ENABLE_PORTABLED') == 1
+ if get_option('link-portabled-shared')
+ portabled_link_with = [libshared]
+ else
+ portabled_link_with = [libsystemd_static,
+ libshared_static]
+ endif
+
dbus_programs += executable(
'systemd-portabled',
systemd_portabled_sources,
include_directories : includes,
- link_with : [libshared],
+ link_with : [portabled_link_with],
dependencies : [libselinux,
threads,
userspace,
'portablectl',
'src/portable/portablectl.c',
include_directories : includes,
- link_with : [libshared],
+ link_with : [portabled_link_with],
dependencies : [threads,
userspace,
versiondep],
['link-timesyncd-shared', get_option('link-timesyncd-shared')],
['link-journalctl-shared', get_option('link-journalctl-shared')],
['link-boot-shared', get_option('link-boot-shared')],
+ ['link-portabled-shared', get_option('link-portabled-shared')],
['first-boot-full-preset'],
['fexecve'],
['standalone-binaries', get_option('standalone-binaries')],
description : 'link journalctl against libsystemd-shared.so')
option('link-boot-shared', type: 'boolean',
description : 'link bootctl and systemd-bless-boot against libsystemd-shared.so')
+option('link-portabled-shared', type: 'boolean',
+ description : 'link systemd-portabled and its helpers to libsystemd-shared.so')
option('first-boot-full-preset', type: 'boolean', value: false,
description : 'during first boot, do full preset-all (default will be changed to true later)')