PERFORCE change 101512 for review
John Birrell
jb at what-creek.com
Fri Jul 14 19:20:39 UTC 2006
On Fri, Jul 14, 2006 at 09:59:56AM -0400, John Baldwin wrote:
> On Friday 14 July 2006 01:06, John Birrell wrote:
> > http://perforce.freebsd.org/chv.cgi?CH=101512
> >
> > Change 101512 by jb at jb_freebsd2 on 2006/07/14 05:06:23
> >
> > Use the proper way to tell gcc to link threaded.
> >
> > Note that there isn't a _single_ place in the FreeBSD source tree
> > where threaded programs are built properly. No wonder that the
> > ports people often get it wrong too!
>
> That's because the proper way currently defined in is "-lpthread" rather
> than "-pthread" :-P
Not according to the gcc developers. This was an issue discussed back when
deischen proposed to get rid of the -pthread option. It was strongly opposed
bu the gcc people because they wanted -pthread to be used so that gcc
would just DTRT.
There have been so many instances of ople attempting to mix the thread
libraries over the years, causing strange link senarios -- none of which
would have happeneded if -pthread had been used.
--
John Birrell
More information about the p4-projects
mailing list