<div dir="ltr"><br><br>---------- Forwarded message ---------<br>From: Zoltán Böszörményi (@zboszor) <<a href="mailto:gitlab@gitlab.freedesktop.org">gitlab@gitlab.freedesktop.org</a>><br>Date: Sat, Jun 25, 2022 at 12:09 AM<br>Subject: Re: mesa | Remove USE_ELF_TLS macro (!17213)<br>To: <<a href="mailto:luoyonggang@gmail.com">luoyonggang@gmail.com</a>><br><br><br>Zoltán Böszörményi commented on a discussion on src/meson.build:<br><br>152 152<br><br>     libraries : libgl,<br><br>153 153<br><br>     libraries_private : gl_priv_libs,<br><br>154 154<br><br>     requires_private : gl_priv_reqs,<br><br>155<br><br>-    variables : ['glx_tls=@0@'.format(use_elf_tls ? 'yes' : 'no')],<br><br>155<br><br>+    variables : ['glx_tls=@0@'.format('yes')],<br><br>156 156<br><br>   )<br><br>I don't think it's a good idea to make ELF_TLS unconditionally true.<br><br>Yocto allows choosing the LIBC at least between GLIBC and MUSL, and Mesa built with TLS crashes under MUSL.<br><br>See this patch: <a href="https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch">https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch</a> and here TLS is only enabled for GLIBC: <a href="https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/mesa.inc#n92">https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/mesa.inc#n92</a><br><br>So I am confused. What's the situation about ELF-TLS support in musl?<br>Is that still broken now?<br><br>--<br>         此致<br>礼<br>罗勇刚<br>Yours<br>    sincerely,<br>Yonggang Luo</div>