Search code examples
static-librariessolaris-10

Static code on Solaris?


Question:

  • Why were static libraries /usr/lib/*.a dropped from Solaris 10?
  • So it is NOT possible to generate statically-linked object?
    • Dynamically-linked compilation, is the only option?

Solution

  • You can still create your own *.a libraries and link to them, but the system libraries will always be dynamically linked.

    See: this post from blogs.oracle.com