17 September 2022 at 02:41, "Jaskaran Veer Singh" wrote:
> > On Thu Sep 15, 2022 at 9:31 AM EDT, wrote: > > > > > 15 September 2022, 09:35, "Sebastien Marie" wrote: > > > > $ LD_DEBUG=1 xlogo 2>&1 | grep ^loading > > loading: libXt.so.11.0 required by xlogo > > loading: libXrender.so.6.0 required by xlogo > > loading: libXext.so.13.0 required by xlogo > > loading: libSM.so.9.0 required by xlogo > > ... > > > > Thank you, this might be useful. Can you do something similar > > with a library? Ie, xlogo above is an executable that you can > > run, what if xlogo were a library... > > > > Maybe you `ld` it against a hello world program before using the technique > above? I haven't tried it, but I think you would need to actually call a function from the library, ie, know some function name, in order for the linker to actually link the library to the executable. Not that this isn't doable, but... Thanks anyhow. Ruda