Threads and OpenSSL
Daniel Eischen
eischen at vigrid.com
Thu Mar 25 16:27:04 PST 2004
On Thu, 25 Mar 2004, David Malone wrote:
> > > CFLAGS+= -DTERMIOS -DANSI_SOURCE
> > > CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR}
> > > +CFLAGS+= -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_TH
>
> > You don't need _REENTRANT, _THREAD_SAFE, or _THREADSAFE for
> > our libc.
>
> OK - I'll check they don't change anything in the OpenSSL code, and
> if they don't I'll remove them. (I think the flags were originally
> selected by a configure script somewhere...)
>
> Is it right to keep -pthread?
I think it is OK since we have said that we are going to
support gcc -pthread. -lpthread is preferred, though.
--
Dan Eischen
More information about the freebsd-threads
mailing list