Date: Fri, 29 Aug 2003 10:33:23 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: "Pedro F. Giffuni" <giffunip@yahoo.com> Cc: freebsd-threads@FreeBSD.org Subject: Re: Removing -pthread from gcc Message-ID: <3F4F8E63.FCBFB517@mindspring.com> References: <20030829055131.73565.qmail@web13403.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Pedro F. Giffuni" wrote: > --- 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. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F4F8E63.FCBFB517>