문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top