Question

I know that in Solaris 10 Sun now Oracle don't provide static version of C library i.e libC.a but I check that same thing is not possible using Sun Studio either, I was under impression that C library are provided by Compiler just like Visual Studio provides C runtime libraries.

So is on Solaris C libray is provided by system only and there is no way to get static version of libC.a compatible on Solaris 10? Thanks

Was it helpful?

Solution

Not sure you can find one. This is "by design" - while the stdlib API are stable, the internals change between releases of the OS, so they force everyone to link dynamically to avoid breakages.

Using dynamic version in theory keeps your executables portable across different Solaris releases (but it is not guaranteed).

If you really want to have a completely self-contained executable, you probably should use GCC with its own stdlib.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top