I have a normal application (not a shared library thus) which
uses convenience libraries in subdirectories.
This application also uses libltdl - in order to load modules.
These modules needs to resolve symbols from the application,
symbols that are in fact in the convenience libraries.
The application itself doesn't use these symbols.
As a result - the symbols are not put into the application!
And loading the modules fails (or at least, calling the
missing functions fails).
What is needed here is obvious: I need to link the application
with the --whole-archive/--no-whole-archive linker flags
around the convenience libraries.
But, libtool doesn't let me do that :/