mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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 ']
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user