Michael Walker wrote:
>>
>> 2. I checked the command line of generating libfoo.so, there is no
>> options related to libthread.so. e.g. no "-lthread" is given. Why
>> "ldd" or the runtime linker "ld.so.1" knows that libfoo.so depends on
>> libthread.so?
>
>
> It could be a dependency of one of the dependencies of libfoo.so?
>
> It could be that the compiler driver decided you needed libthread.so and
> inserted it (I think C++/gcc does this sometimes).
-mt Passes D_REENTRANT to preprocessor. Appends -lthread
after all other user-specified libraries on the command
line.
???
--
Rod