Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-29 Thread Rich Felker
On Tue, Jan 29, 2019 at 11:32:59AM -0800, Eric Anholt wrote: > Rich Felker writes: > > > On Tue, Jan 29, 2019 at 08:29:32AM +0100, Patrick Steinhardt wrote: > >> On Mon, Jan 28, 2019 at 02:09:18PM -0800, Dylan Baker wrote: > >> > Quoting Adam Jackson (2019-01-28 09:00:13) > >> > > On Sat,

Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-29 Thread Eric Anholt
Rich Felker writes: > On Tue, Jan 29, 2019 at 08:29:32AM +0100, Patrick Steinhardt wrote: >> On Mon, Jan 28, 2019 at 02:09:18PM -0800, Dylan Baker wrote: >> > Quoting Adam Jackson (2019-01-28 09:00:13) >> > > On Sat, 2019-01-26 at 13:56 +0100, Patrick Steinhardt wrote: >> > > >> > > >

Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-29 Thread Patrick Steinhardt
On Mon, Jan 28, 2019 at 02:09:18PM -0800, Dylan Baker wrote: > Quoting Adam Jackson (2019-01-28 09:00:13) > > On Sat, 2019-01-26 at 13:56 +0100, Patrick Steinhardt wrote: > > > > > Unfortunately, I'm not aware of any easy way to do this. The > > > problem is not due to the compiler, as the

Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-29 Thread Rich Felker
On Tue, Jan 29, 2019 at 08:29:32AM +0100, Patrick Steinhardt wrote: > On Mon, Jan 28, 2019 at 02:09:18PM -0800, Dylan Baker wrote: > > Quoting Adam Jackson (2019-01-28 09:00:13) > > > On Sat, 2019-01-26 at 13:56 +0100, Patrick Steinhardt wrote: > > > > > > > Unfortunately, I'm not aware of any

Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-28 Thread Dylan Baker
Quoting Adam Jackson (2019-01-28 09:00:13) > On Sat, 2019-01-26 at 13:56 +0100, Patrick Steinhardt wrote: > > > Unfortunately, I'm not aware of any easy way to do this. The > > problem is not due to the compiler, as the program compiles and > > links just fine with musl libc. Instead, this is a

Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-28 Thread Adam Jackson
On Sat, 2019-01-26 at 13:56 +0100, Patrick Steinhardt wrote: > Unfortunately, I'm not aware of any easy way to do this. The > problem is not due to the compiler, as the program compiles and > links just fine with musl libc. Instead, this is a runtime issue > that happens when dlopen'ing shared

Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-28 Thread Patrick Steinhardt
On Fri, Jan 25, 2019 at 01:16:30PM -0800, Eric Anholt wrote: > Patrick Steinhardt writes: > > > The musl libc library does not have any support for the > > "initial-exec" TLS model and is unlikely to ever implement it. > > Thus, TLS support in GLX has been turned off in musl-based > >

Re: [Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-25 Thread Eric Anholt
Patrick Steinhardt writes: > The musl libc library does not have any support for the > "initial-exec" TLS model and is unlikely to ever implement it. > Thus, TLS support in GLX has been turned off in musl-based > distributions to work around problems when dlopen'ing drivers. > While this is

[Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

2019-01-25 Thread Patrick Steinhardt
The musl libc library does not have any support for the "initial-exec" TLS model and is unlikely to ever implement it. Thus, TLS support in GLX has been turned off in musl-based distributions to work around problems when dlopen'ing drivers. While this is easily possible using the autoconf build