1

Building an SO - Trying to include an existing archive (static lib)

view story
linux-howto

http://unix.stackexchange.com – I have a shared library that I'm trying to build, which normally links with another share library. However, this "other" library is being provided by a 3rd party currently, as a static archive (.a file). Is it possible to statically link-in this other library's .a archive? I currently build shared libraries using g++, but if ld or ar has to be used, I can investigate that as an alternative. Or would it be easier/better to extract the object files from the archive, build an SO, and then linked it with the primary SO? (HowTos)