From owner-freebsd-current Wed Jan 24 11: 9:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from blizzard.sabbo.net (ns.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id 7642637B400; Wed, 24 Jan 2001 11:09:08 -0800 (PST) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.112]) by blizzard.sabbo.net (8.10.1/8.10.1) with ESMTP id f0OJ8PT03460; Wed, 24 Jan 2001 21:08:29 +0200 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.1/8.9.3) with ESMTP id f0OJ8S603299; Wed, 24 Jan 2001 21:08:28 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3A6F281A.858B78AC@FreeBSD.org> Date: Wed, 24 Jan 2001 21:08:10 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Dan Nelson Cc: Daniel Eischen , Alfred Perlstein , current@FreeBSD.org, ports@FreeBSD.org Subject: Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps References: <20010124084058.S26076@fw.wintelcom.net> <20010124123147.A2215@dan.emsphone.com> <3A6F20EE.15B78584@FreeBSD.org> <20010124130233.B2215@dan.emsphone.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Nelson wrote: > 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? No, I think it would violate POLA. AFAIK, the most that you can to do is to mention it somehow in pthread manpage. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message