Re: [PATCH i-g-t v3 22/31] tools/intel_audio_dump: link with minimal sub-libraries
Krzysztof Karas <[email protected]>
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <ddvacienb5vn2ayridre5pzmy5swl2xp33k5ssts5zyp5p72sr@ipw4rd2xtlcj> |
Hi Sebastian, On 2026-07-15 at 14:15:32 +0200, Sebastian Brzezinka wrote: > intel_audio_dump only needs the register/MMIO helper subset, not the > full libigt.so stack. > > Switch to linking against lib_igt_reg_tools. > > ldd before: 35 (ldd | wc -l) > ldd after: 5 (ldd | wc -l) > > Signed-off-by: Sebastian Brzezinka <[email protected]> > Acked-by: Ashutosh Dixit <[email protected]> > Reviewed-by: Krzysztof Niemiec <[email protected]> > --- > tools/meson.build | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/tools/meson.build b/tools/meson.build > index 2e8ceea36..f9bbb41a9 100644 > --- a/tools/meson.build > +++ b/tools/meson.build > @@ -14,7 +14,6 @@ endforeach > tools_progs = [ > 'igt_facts', > 'igt_power', > - 'intel_audio_dump', > 'intel_bios_dumper', > 'intel_display_bandwidth', > 'intel_display_crc', > @@ -104,6 +103,11 @@ executable('intel_gpu_time', 'intel_gpu_time.c', > install_rpath : bindir_rpathdir, > install : true) > > +executable('intel_audio_dump', 'intel_audio_dump.c', > + dependencies : [lib_igt_reg_tools, pciaccess, libdrm], > + install_rpath : bindir_rpathdir, > + install : true) > + > if libudev.found() > intel_dp_compliance_src = [ > 'intel_dp_compliance.c', > -- > 2.53.0 > Reviewed-by: Krzysztof Karas <[email protected]> -- Best Regards, Krzysztof