pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / mesa / patches / 03-tls.patch
blobff915f9a28e0c14ff1138f925cb6b820e48120f5
1 maintain option to control elf-tls
3 not suitable for upstream
5 --- meson.build 2022-03-21 08:03:41.891463306 -0700
6 +++ meson.build 2022-03-21 08:10:47.811295661 -0700
7 @@ -497,7 +497,7 @@
8 use_elf_tls = false
9 if (not ['freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and
10 (not with_platform_android or get_option('platform-sdk-version') >= 29) and
11 - (not with_platform_windows or not with_shared_glapi))
12 + (not with_platform_windows or not with_shared_glapi) and (get_option('elf-tls') != false))
13 pre_args += '-DUSE_ELF_TLS'
14 use_elf_tls = true
16 --- meson_options.txt 2022-03-21 08:11:01.301024612 -0700
17 +++ meson_options.txt 2022-03-21 08:11:26.626742487 -0700
18 @@ -402,6 +402,12 @@
19 description : 'Enable execmem support. Without execmem, glapi will fail to generate dynamic glapi stubs when entrypoints unknown to glapi but known to DRI drivers are requested in eglGetProcAddress or glXGetProcAddress. This should be enabled unless the platform can guarantee glapi and DRI drivers are always built from the same source tree.'
21 option(
22 + 'elf-tls',
23 + type : 'boolean',
24 + value : true,
25 + description : 'Enable thread-local storage in GLX and EGL'
27 +option(
28 'osmesa',
29 type : 'boolean',
30 value : false,