From owner-freebsd-threads@FreeBSD.ORG Thu Aug 28 22:51:32 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C703C16A4BF for ; Thu, 28 Aug 2003 22:51:32 -0700 (PDT) Received: from web13403.mail.yahoo.com (web13403.mail.yahoo.com [216.136.175.61]) by mx1.FreeBSD.org (Postfix) with SMTP id A850443FE9 for ; Thu, 28 Aug 2003 22:51:31 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030829055131.73565.qmail@web13403.mail.yahoo.com> Received: from [200.91.194.13] by web13403.mail.yahoo.com via HTTP; Fri, 29 Aug 2003 06:51:31 BST Date: Fri, 29 Aug 2003 06:51:31 +0100 (BST) From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" To: deischen@FreeBSD.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-threads@FreeBSD.org Subject: Re: Removing -pthread from gcc X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 05:51:32 -0000 --- Daniel Eischen wrote: ... > > -pthread is currently a compiler switch, and we (FreeBSD) are > one of the very few OSes that have such an option. It was only > there to prevent linking to libc in FreeBSD-[34]; otherwise > it would not exist. Do not confuse -pthread with -lpthread > or -lthr/-lkse/-llinuxthreads/-lwhatever. If autoconf has > been taught that FreeBSD has -pthread, then it will have to > be untaught. > OK I got it now, everything should work fine then. Right now there is no policy if the ports tree should try to build everything threaded. Some ports (at least my ports, when possible) have a USE_THREADS option which I guess should be default at a future time. FWIW, the cad/tochnog port gave me less than 5% performance hit when build with libc_r wrt the non-threaded version (on an UP system - I was just curious). best regards, Pedro. ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/