Fwd: mesa | Remove USE_ELF_TLS macro (!17213)

罗勇刚(Yonggang Luo) luoyonggang at gmail.com
Sat Jun 25 03:36:09 UTC 2022


---------- Forwarded message ---------
From: Zoltán Böszörményi (@zboszor) <gitlab at gitlab.freedesktop.org>
Date: Sat, Jun 25, 2022 at 12:09 AM
Subject: Re: mesa | Remove USE_ELF_TLS macro (!17213)
To: <luoyonggang at gmail.com>


Zoltán Böszörményi commented on a discussion on src/meson.build:

152 152

     libraries : libgl,

153 153

     libraries_private : gl_priv_libs,

154 154

     requires_private : gl_priv_reqs,

155

-    variables : ['glx_tls=@0@'.format(use_elf_tls ? 'yes' : 'no')],

155

+    variables : ['glx_tls=@0@'.format('yes')],

156 156

   )

I don't think it's a good idea to make ELF_TLS unconditionally true.

Yocto allows choosing the LIBC at least between GLIBC and MUSL, and Mesa
built with TLS crashes under MUSL.

See this patch:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch
and here TLS is only enabled for GLIBC:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/mesa.inc#n92

So I am confused. What's the situation about ELF-TLS support in musl?
Is that still broken now?

--
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20220625/e70f77c0/attachment.htm>


More information about the mesa-dev mailing list