Stephen Montgomery-Smith wrote:
> 
> "M. Warner Losh" wrote:
> >
> > Confirmed.  test.c appears to work properly when compiled:
> >
> > cc -o test test.c -pthread
> > ./test
> >
> > Generally speaking, if you want to add -lc_r, you are doing things
> > incorrectly.  I've done way to much building...  In FreeBSD 3.x you
> > did need to do -lc_r, but that was changed to -pthread in 4.0.
> >
> > Warner
> >
> 
> According to the man page for gcc, you are supposed to write
> 
> cc -o test test.c -pthread -D_THREAD_SAFE
> 
> or am I misunderstanding something?

In 5.0-CURRENT -pthread was replaced by -lc_r.

-Maxim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to