Date: Sat, 2 Jun 2007 09:00:08 -0400 (EDT) From: Daniel Eischen <deischen@freebsd.org> To: Vladimir Kushnir <vkushnir@bigmir.net> Cc: freebsd-current@freebsd.org Subject: Re: "-pthread" == "-lpthread" for shared libs in -CURRENT Message-ID: <Pine.GSO.4.64.0706020854480.1848@sea.ntplx.net> In-Reply-To: <20070602121928.G90169@kushnir1.kiev.ua> References: <20070602121928.G90169@kushnir1.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0706020854480.1848>