Question about runtimes

Daniel Wilkins tekk at linuxmail.org
Tue Aug 6 17:48:29 UTC 2024


On Tue, Aug 06, 2024 at 02:22:15PM +0100, Mark Naughton wrote:
> The list of the dependencies is already in the ELF header.
> You can disover every single dependency needed by an application with ldd.

No, you can't. Consider SDL:
/usr/local/lib/libSDL.so.8.0
/usr/local/lib/libiconv.so.7.1
/usr/lib/libm.so.10.1
/usr/lib/libsndio.so.7.2
/usr/lib/libusbhid.so.7.1
/usr/lib/libpthread.so.27.1
(this is the listing on my laptop.

This is incomplete. SDL will dlopen several other libraries at runtime
depending on what's needed in order to keep the linkage minimal for
those who don't use it. You'll notice a lack of linking against Xlib
or xcb for example, because if you launch the app in Wayland it'll
dlopen against Wayland instead.


More information about the Flatpak mailing list