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

From: Daniel Eischen <deischen_at_freebsd.org>
Date: Sat, 2 Jun 2007 09:00:08 -0400 (EDT)
On Sat, 2 Jun 2007, Vladimir Kushnir wrote:

> Hello, guys.

[ ... ]

> *lib:
> %{!shared:
> %{!pg: %{pthread:-lpthread} -lc}
> %{pg:  %{pthread:-lpthread_p} -lc_p}
> }
> %{shared: %{pthread:-lpthread} -lc}
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Is this behaviour intended?

Of course.  See src/UPDATING 20070513.  libpthread is installed
as libkse, and libpthread.so is a link to either libthr.so.3
(by default) or libkse.so.3 (when DEFAULT_THREAD_LIB=libpthread).

You can still explicitly choose which library you want when building
ports by setting PTHREAD_LIBS=-lkse or PTHREAD_LIBS=-lthr.  If you
use PTHREAD_LIBS=-pthread or PTHREAD_LIBS=-lpthread, then the default
library will be used (whatever the link libpthread.so points to).

-- 
DE
Received on Sat Jun 02 2007 - 11:00:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC