"-pthread" == "-lpthread" for shared libs in -CURRENT

Vladimir Kushnir vkushnir at bigmir.net
Sat Jun 2 15:14:58 UTC 2007



On Sat, 2 Jun 2007, Alexander Kabaev wrote:

> On Sat, 2 Jun 2007 12:50:58 +0300 (EEST)
> Vladimir Kushnir <vkushnir at bigmir.net> wrote:
>
>> *lib:
>> %{!shared:
>> %{!pg: %{pthread:-lpthread} -lc}
>> %{pg:  %{pthread:-lpthread_p} -lc_p}
>> }
>> %{shared: %{pthread:-lpthread} -lc}
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Is this behaviour intended?
>>
>
> Not only intended, it is absolutely necessary for symbol versions in
> libc and libthread(libkse,libthr) to have any sense.
>
> -- 
> Alexander Kabaev
>

Thanks. I was merely a wee bit surprised.

Regards,
Vladimir


More information about the freebsd-current mailing list