On Tue, Apr 09, 2019 at 12:17:46PM +0100, Patrick Welche wrote: > On Tue, Apr 09, 2019 at 10:38:14AM +0000, co...@sdf.org wrote: > > thanks to jmcneill for suggesting dlerror(); > > > > perhaps we need to remove -DGLX_USE_TLS. it otherwise uses TLS via > > pthread. > > > > /usr/X11R7/lib/libGL.so: Use of initialized Thread Local Storage with model > > initial-exec and dlopen is not supported > > > > I'm going to test > > Thanks! > > (This might end up being "interesting": > > https://gitlab.freedesktop.org/mesa/mesa/blob/master/meson.build#L346 > > so AFAICT the "default" meson build defines GLX_USE_TLS no matter what...) > > > Cheers, > > Patrick
There's a bunch of patches in the pkgsrc mesalib18, I'll give them a try. patch-src_glx_glxclient.h patch-src_glx_glxcurrent.c patch-src_mapi_entry__x86-64__tls.h patch-src_mapi_entry__x86__tls.h patch-src_mapi_u__current.c patch-src_mapi_u__current.h (they apply with some fuzz)