On 06/23/2010 03:15 PM, Rainer Orth wrote:
In the Studio 12.1 cc manpage, there's nothing justifying this
difference in behavior, while the 12.2ex manpage has
Note that when compiling with -G,neither -ltread nor
-lpthread are automatically included by -mt=yes. You
will need to explicitly list these libraries when
building a shared library.
It's in another place of the man page and I suppose author thought that
it applies also to -mt:
When you use the -G option, the compiler does not pass
any default -l options to ld. If you want the shared
library to have a dependency on another shared library,
you must pass the necessary -l option on the command
line.
I guess it was a doc bug that got fixed and the reason for not linking
with libthread is simply historical.
_______________________________________________
tools-compilers mailing list
[email protected]