From owner-freebsd-threads@FreeBSD.ORG Fri Aug 29 10:34:16 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 7A60C16A4BF; Fri, 29 Aug 2003 10:34:16 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF10C43FA3; Fri, 29 Aug 2003 10:34:15 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfjas.dialup.mindspring.com ([165.247.205.92] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19sn8X-0000lD-00; Fri, 29 Aug 2003 10:34:13 -0700 Message-ID: <3F4F8E63.FCBFB517@mindspring.com> Date: Fri, 29 Aug 2003 10:33:23 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Pedro F. Giffuni" References: <20030829055131.73565.qmail@web13403.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4cd51410bfa1d93b06b05f084229f94ee350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: deischen@FreeBSD.org 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 17:34:16 -0000 "Pedro F. Giffuni" wrote: > --- 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. No, it's going to break every place that the conf file "knows" it's FreeBSD, and spews out -pthread into the generated Makefile's from the Makefile.in, because it "knows" that FreeBSD has -pthread. This is going to have to be changed on an application-by-application basis, since the damn thing is recognizing the platform, rather than the platform capabilities. Pick 10 autoconf-using, threads-using ports at random, and go into the platform support subdirectories, and note that the FreeBSD entry has explicit settings for using -pthread. -- Terry