@afxgroup
Quote:
BTW .so or .a are the same. They are just stubs call to .library. So you will not see any difference using .a or .so
Of course there is a difference, even if the contents are identical. If you use dynamic linking for example with libgcc.so, or any other shared object using the shared C library which depends on the clib2 stubs it will only work with a libclib2.so but not if you link with a libclib2.a instead.
@kas1e
Quote:
I mean after we have real shared clib2.library, do we need to provide any .so at all with clib2, be it stubs or whatever. I mean after clib2.library done, there no needs for libc.so anymore
Even if libclib2.a and libclib2.so are only stubs calling clib2.library functions they are still required, just like the newlib libc.a and libc.so are required for newlib.library.
But of course the clib2 shared object stubs library can't use the soname libc.so since that's the incompatible newlib shared object stubs shared object library already.