From owner-freebsd-current@FreeBSD.ORG Thu Apr 1 13:53:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3458B16A4CE for ; Thu, 1 Apr 2004 13:53:10 -0800 (PST) Received: from gw.celabo.org (gw.celabo.org [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D2E043D3F for ; Thu, 1 Apr 2004 13:53:09 -0800 (PST) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (not verified)) by gw.celabo.org (Postfix) with ESMTP id 3751C5482B; Thu, 1 Apr 2004 15:53:09 -0600 (CST) Received: by madman.celabo.org (Postfix, from userid 1001) id D76D66D465; Thu, 1 Apr 2004 15:53:08 -0600 (CST) Date: Thu, 1 Apr 2004 15:53:08 -0600 From: "Jacques A. Vidrine" To: Daniel Eischen Message-ID: <20040401215308.GA79924@madman.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , Daniel Eischen , Oliver Eikemeier , Sean McNeil , freebsd-current@FreeBSD.org References: <20040401153815.GD60392@madman.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.6i cc: freebsd-current@FreeBSD.org cc: Sean McNeil cc: Oliver Eikemeier Subject: Re: nss_ldap broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2004 21:53:10 -0000 On Thu, Apr 01, 2004 at 11:42:59AM -0500, Daniel Eischen wrote: > On Thu, 1 Apr 2004, Jacques A. Vidrine wrote: > > > On Thu, Apr 01, 2004 at 10:16:25AM -0500, Daniel Eischen wrote: > > > I think the best way is to avoid having shared libraries needlessly linked to > > > a threads library. > > > > If we can guarantee that -pthread would give that behavior ``forever'', > > then great. I guess we've come full circle (``-pthread good'' > > ``-pthread bad, don't use it'' ``-pthread good''). :-) > > > > Then how does one pick an alternate threading library? Say `libmap' and > > Override PTHREAD_LIBS to be -lthrlibofchoice for > the port you are building. Then we're back where we started. The port will build its applications *and* libraries with a DT_NEEDED libthrlibofchoice.so.N. If something dlopens/dlcloses the library, again we're playing with fire. Cheers, -- Jacques Vidrine / nectar@celabo.org / jvidrine@verio.net / nectar@freebsd.org