Created attachment 274599 [details, diff] Patch adding TREADLOCAL specifier The optimizers that make use of luksan/pssubs.c are not thread-save because the function luksan_ps1l01__ uses static variables that are not thread local. Amongst these optimizers are ld-lbfgs, ld-var1, ld-var2. The attached patch adds the THREADLOCAL specifier that is used in the library to make static variables thread-local (if the compiler supports it).
Upstream just told me that this will be fixed in the next version.
Fixed in version 2.2.2
Actually it was completely fixed in version 2.2.3.