From f1350128e118be4361116ec72d3946383fa73232 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Thu, 22 Oct 2020 16:13:40 +0100 Subject: [PATCH] bin: Link diagnostic tools to libsteam-runtime-tools statically This lets them access non-public API, and means there's one less thing that can go wrong. The cost is about 500K, which is much smaller than a Steam Runtime. Signed-off-by: Simon McVittie <smcv@collabora.com> --- bin/meson.build | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/meson.build b/bin/meson.build index 01ff7eb7e..897d3c989 100644 --- a/bin/meson.build +++ b/bin/meson.build @@ -24,10 +24,9 @@ executable( 'steam-runtime-system-info', 'system-info.c', - dependencies : [gio_unix, glib, json_glib, libglnx_dep, libsteamrt_dep], + dependencies : [gio_unix, glib, json_glib, libglnx_dep, libsteamrt_static_dep], install : true, - # Use the adjacent libsteam-runtime-tools and json-glib, ignoring - # LD_LIBRARY_PATH even if set + # Use the adjacent json-glib, ignoring LD_LIBRARY_PATH even if set build_rpath : bin_rpath, install_rpath : bin_rpath, ) @@ -35,10 +34,9 @@ executable( executable( 'steam-runtime-check-requirements', 'check-requirements.c', - dependencies : [glib, json_glib, gobject, libsteamrt_dep], + dependencies : [glib, json_glib, gobject, libsteamrt_static_dep], install : true, - # Use the adjacent libsteam-runtime-tools and json-glib, ignoring - # LD_LIBRARY_PATH even if set + # Use the adjacent json-glib, ignoring LD_LIBRARY_PATH even if set build_rpath : bin_rpath, install_rpath : bin_rpath, ) -- GitLab