From owner-freebsd-current Wed Jan 24 11: 3: 1 2001 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id F403F37B404; Wed, 24 Jan 2001 11:02:36 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id f0OJ2Xn05308; Wed, 24 Jan 2001 13:02:33 -0600 (CST) (envelope-from dan) Date: Wed, 24 Jan 2001 13:02:33 -0600 From: Dan Nelson To: Maxim Sobolev Cc: Daniel Eischen , Alfred Perlstein , current@FreeBSD.org, ports@FreeBSD.org Subject: Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps Message-ID: <20010124130233.B2215@dan.emsphone.com> References: <20010124084058.S26076@fw.wintelcom.net> <20010124123147.A2215@dan.emsphone.com> <3A6F20EE.15B78584@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <3A6F20EE.15B78584@FreeBSD.org>; from "Maxim Sobolev" on Wed Jan 24 20:37:34 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jan 24), Maxim Sobolev said: > Dan Nelson wrote: > > I thought the old way was just -pthread, and it would handle > > everything. I did a quick scan of the devel/ and net/ branches of our > > ports tree, and of 43 thread-using ports, 36 of the ports simply add > > -pthread. Only 7 also add -D_THREAD_SAFE. > > It's not a very accurate estimate, as the magic can be in the > distfile itself, i.e. properly written configure script or makefile > may know that FreeBSD need a -pthread and -D_THREAD_SAFE. Right; I only scanned for ports that had been patched to support our pthreads. I checked a couple of other ports that I know have native threads support (gnut, db3, mysql) and only db3 adds -D_THREAD_SAFE. The pthread(3) manpage doesn't mention -D_THREAD_SAFE at all. Would it be a good idea to edit the specs file in -STABLE to add that define when the user compiles with -pthread? -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message