<div dir="ltr"><div>Hi Tony,</div><div><br></div><div>I believe I somewhat misunderstood what appears to be two separate issues here: 1: how to get your build to generate the static and shared libraries and 2: the library format doesn't seem correct. Regarding 1, it will be project specific if the project's build designed to simultaneously produce multiple configurations. In the context of MongoC, I've looked at the CMake files and it seems as though shared libraries are always built and static libraries can *also* be explicitly enabled/disabled by setting -DENABLE_STATIC=ON or -DENABLE_STATIC=OFF.</div><div><br></div><div>Regarding 2,<br></div><div> <br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_4665162806267988682divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols"><div style="color:rgb(0,0,0)"><div><div class="m_4665162806267988682x_gmail_quote"><blockquote class="m_4665162806267988682x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_4665162806267988682x_m_1738457561020838378divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols"><p style="margin-top:0;margin-bottom:0">
</p>
<p style="margin-top:0;margin-bottom:0">On AIX, when building MongoC 1.11, cmake 3.11.4 generates lib*.so files and lib*.a files which contain .o files.</p>
<p style="margin-top:0;margin-bottom:0">On AIX, we should get libraries lib*.a containing the lib*.so file.</p></div></div></blockquote></div></div></div></div></div></blockquote><div><br></div><div>While with most SysV and BSD unices the concept of "shared libraries" and "runtime linking" are one in the same and go togethor, on AIX they are two seperate ideas orthogonal to one another.  On AIX you can have shared libraries used for runtime-linking, i.e. libfoo.so containing objects, and archive files libfoo.a used for compile time linking.  The archive file can then in turn contain object files used for static linkling or an so used for shared linking.  CMake will produce the stand alone libfoo.so shared lib for shared runtime linking and the libfoo.a archive with object files for static compile-time linking, but I believe does not support generating the libfoo.a archive with .sos for shared compile-time linking.</div><div><br></div><div>- Chuck<br></div></div></div></div>