mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
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:
@ -5,14 +5,12 @@ tools_deps = [
|
|||||||
|
|
||||||
tools_cflags = [ '-DSYSPROF_COMPILATION ']
|
tools_cflags = [ '-DSYSPROF_COMPILATION ']
|
||||||
|
|
||||||
if get_option('libsysprof')
|
sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c',
|
||||||
sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c',
|
dependencies: [libsysprof_static_dep, polkit_dep, polkit_agent_dep],
|
||||||
dependencies: tools_deps + [libsysprof_dep, polkit_dep, polkit_agent_dep],
|
c_args: tools_cflags,
|
||||||
c_args: tools_cflags,
|
install_dir: get_option('bindir'),
|
||||||
install_dir: get_option('bindir'),
|
install: true,
|
||||||
install: true,
|
)
|
||||||
)
|
|
||||||
endif
|
|
||||||
|
|
||||||
sysprof_cat = executable('sysprof-cat', 'sysprof-cat.c',
|
sysprof_cat = executable('sysprof-cat', 'sysprof-cat.c',
|
||||||
dependencies: tools_deps,
|
dependencies: tools_deps,
|
||||||
|
|||||||
Reference in New Issue
Block a user