Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2003 06:51:31 +0100 (BST)
From:      "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To:        deischen@FreeBSD.org
Cc:        freebsd-threads@FreeBSD.org
Subject:   Re: Removing -pthread from gcc
Message-ID:  <20030829055131.73565.qmail@web13403.mail.yahoo.com>
In-Reply-To: <Pine.GSO.4.10.10308290114540.10807-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 --- Daniel Eischen <eischen@vigrid.com> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030829055131.73565.qmail>