Date: Wed, 11 Oct 2006 13:42:52 -0400 (EDT) From: Daniel Eischen <deischen@freebsd.org> To: Gergely CZUCZY <phoemix@harmless.hu> Cc: freebsd-threads@freebsd.org Subject: Re: threads/104297: mixing libthr and libpthread through libs segfaults the binary Message-ID: <Pine.GSO.4.64.0610111339460.18760@sea.ntplx.net> In-Reply-To: <200610111640.k9BGeSGN081920@freefall.freebsd.org> References: <200610111640.k9BGeSGN081920@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Oct 2006, Gergely CZUCZY wrote: > The following reply was made to PR threads/104297; it has been noted by GNATS. > > From: Gergely CZUCZY <phoemix@harmless.hu> > To: Daniel Eischen <eischen@vigrid.com> > Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-threads@freebsd.org > Subject: Re: threads/104297: mixing libthr and libpthread through libs segfaults the binary > Date: Wed, 11 Oct 2006 18:35:16 +0200 > > --6TrnltStXW4iwmi0 > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Wed, Oct 11, 2006 at 12:28:53PM -0400, Daniel Eischen wrote: > > >and how do i use libthr if one of the libs i link against > > >is using libpthread? > > You can't unless you relink everything or you use libmap.conf(5). > so, the choice of which threading library the system uses > is decieded by the authors of all ports. > shouldn't there be a way to specify for _all_ ports, > sources, everything, which solution is the prefered > one for the system? -pthread currently defaults to libpthread for i386. Otherwise, you can set PTHREAD_LIBS in /etc/make.conf (or ports.conf?) before you build your ports. Ask ports@ for further questions. -- DE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0610111339460.18760>