Is there a way to build a static lib so that it links in other static libs?
In other words, if I build a lib A as a static lib, and it has a dependency on another static lib B. Is there a way for me to build A such that it incorporates the necessary parts of B so that I only have to ship A and not A and B?
To give an example, I have a colleague who is building a library that has a dependency on boost thread. The interface header of his library uses pointer to implementation, and therefore does not expose anything unnecessary. The issue that he is having is that when he builds his library, he would like it to link in the required sections from boost thread so that when he builds a final application, the final application will not need the boost library at link time.
Anyway, it's not obvious how to do this, or if it is even possible.
Any advice would be appreciated.

