I have a Library X that depends on Library Y. I have an App A that calls functions from X.
Assume that Library Y is only available as a static library. If both X and Y are statically linked to App A, everything works fine. However, I want X to be a dynamic (shared) library.
Currently, having A link Y statically doesn't work as the dynamic X can't see what's in Y.
Is there any way to get Y as a dynamic library without having to statically link X to Y? It's not OK for us to wrap Y so that we have a dynamic version of Y. Generally speaking, are there linker options available that somehow expose Y (which is statically linked to A) to X (dynamic library)?
Reason I'm asking is that I also have Library Z that also depends on Y. I don't want to have to statically link Y into both X and Z just so X and Z can be dynamic.
Hope this isn't too confusing. I appreciate any help.