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]).
This commit is contained in:
Christian Hergert
2022-08-17 15:07:47 -07:00
parent 98e23f0a27
commit 749dfbd57e

View File

@ -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,