[sysprof] tools: make sysprof-cli statically linked



commit 749dfbd57e48d6a3e45727bef3e130bc45ac6883
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 17 15:07:47 2022 -0700

    tools: make sysprof-cli statically linked
    
    We don't need to dynamically link against libsysprof for sysprof-cli as
    we can do the same thing that sysprof-agent does. In fact, we can probably
    even make sysprof-cli wrap sysprof-agent in the future (or be the same
    binary that looks at it's argv[0]).

 src/tools/meson.build | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/tools/meson.build b/src/tools/meson.build
index 543f5b01..af8a4ec9 100644
--- a/src/tools/meson.build
+++ b/src/tools/meson.build
@@ -5,14 +5,12 @@ tools_deps = [
 
 tools_cflags = [ '-DSYSPROF_COMPILATION ']
 
-if get_option('libsysprof')
-  sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c',
-    dependencies: tools_deps + [libsysprof_dep, polkit_dep, polkit_agent_dep],
-          c_args: tools_cflags,
-     install_dir: get_option('bindir'),
-         install: true,
-  )
-endif
+sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c',
+  dependencies: [libsysprof_static_dep, polkit_dep, polkit_agent_dep],
+        c_args: tools_cflags,
+   install_dir: get_option('bindir'),
+       install: true,
+)
 
 sysprof_cat = executable('sysprof-cat', 'sysprof-cat.c',
   dependencies: tools_deps,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]