| diff --git a/meson.build b/meson.build |
| index 428ebb2102..4158f63bc7 100644 |
| --- a/meson.build |
| +++ b/meson.build |
| @@ -2622,7 +2622,8 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 |
| 'systemd-cryptsetup', |
| systemd_cryptsetup_sources, |
| include_directories : includes, |
| - link_with : [libshared], |
| + link_with : [libsystemd_static, |
| + libshared_static], |
| dependencies : [libcryptsetup, |
| libp11kit], |
| install_rpath : rootlibexecdir, |
| @@ -2633,7 +2634,8 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 |
| 'systemd-cryptsetup-generator', |
| 'src/cryptsetup/cryptsetup-generator.c', |
| include_directories : includes, |
| - link_with : [libshared], |
| + link_with : [libsystemd_static, |
| + libshared_static], |
| install_rpath : rootlibexecdir, |
| install : true, |
| install_dir : systemgeneratordir) |
| @@ -2661,7 +2663,8 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 |
| 'systemd-cryptenroll', |
| systemd_cryptenroll_sources, |
| include_directories : includes, |
| - link_with : [libshared], |
| + link_with : [libsystemd_static, |
| + libshared_static], |
| dependencies : [libcryptsetup, |
| libdl, |
| libopenssl, |