diff --git a/meson.build b/meson.build index 9a8f93f0cf..67df9a4599 100644 --- a/meson.build +++ b/meson.build @@ -2201,18 +2201,17 @@ if conf.get('ENABLE_NETWORKD', false) install_rpath : rootlibexecdir, install : true, install_dir : rootlibexecdir) -endif -exe = executable('networkctl', - networkctl_sources, - include_directories : includes, - link_with : [libsystemd_network, + exe = executable('networkctl', + networkctl_sources, + include_directories : includes, + link_with : [libsystemd_network, libshared], - install_rpath : rootlibexecdir, - install : true, - install_dir : rootbindir) -public_programs += [exe] - + install_rpath : rootlibexecdir, + install : true, + install_dir : rootbindir) + public_programs += [exe] +endif ############################################################ foreach tuple : tests