On Sat, Nov 25, 2017 at 05:09:02AM -0800, Hal Murray wrote:
> 
> k...@roeckx.be said:
> > This means that when we initialize a global variable we use the
> > pthread_once() function, which internally uses the futex to do that. It's
> > not using threads itself, it's just making sure that if you use threads
> > things work properly. 
> 
> Thanks.
> 
> Do we have to link with pthread, or is there a dummy/backup pthread_once() 
> available for things like this if we are not using threads?

OpenSSL itself now linked to pthread, there is no need for you to
also link to it unless you use threads. The only way to avoid it
is to build OpenSSL without thread support.


Kurt

_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to