From: Zbigniew Jędrzejewski-Szmek Date: Wed, 30 Nov 2022 08:25:49 +0000 (+0100) Subject: meson: build a standalone version of systemd-shutdown X-Git-Tag: v253-rc1~352^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ed3aca5c3bdeeac4bab8825a7356d93c7df3f54;p=thirdparty%2Fsystemd.git meson: build a standalone version of systemd-shutdown I'd like to use this as a basis for an exitrd: When compiled with -Dstandalone-binaries=true -Db_lto=true -Dbuildtype=release, the new file is 800k. It's more than I'd like, but still quite a bit less than libsystemd-shared.so, which is 3800k. --- diff --git a/meson.build b/meson.build index 6ff96da9502..08c9c842abf 100644 --- a/meson.build +++ b/meson.build @@ -3859,6 +3859,22 @@ executable( install : true, install_dir : rootlibexecdir) +if have_standalone_binaries + executable( + 'systemd-shutdown.standalone', + systemd_shutdown_sources, + include_directories : includes, + c_args : '-DSTANDALONE', + link_with : [libshared_static, + libbasic, + libsystemd_static], + dependencies : [libmount, + versiondep], + install_rpath : rootpkglibdir, + install : true, + install_dir : rootlibexecdir) +endif + executable( 'systemd-update-done', 'src/update-done/update-done.c',