"-pthread" == "-lpthread" for shared libs in -CURRENT
Daniel Eischen
deischen at freebsd.org
Sat Jun 2 13:00:13 UTC 2007
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
More information about the freebsd-current
mailing list