qi: Make output directory configurable via `configure`
[dragora.git] / patches / mesa / add-use-elf-tls.patch
blob629c5ac187fce648394c77a121b8b46503789dc8
1 diff --git a/meson.build b/meson.build
2 index e1e94e7..b355f94 100644
3 --- a/meson.build
4 +++ b/meson.build
5 @@ -447,7 +447,9 @@ endif
7 # Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
8 use_elf_tls = false
9 -if (not ['freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and
10 +with_use_elf_tls = get_option('use-elf-tls')
11 +if with_use_elf_tls and
12 + (not ['freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and
13 (not with_platform_android or get_option('platform-sdk-version') >= 29) and
14 (not with_platform_windows or not with_shared_glapi))
15 pre_args += '-DUSE_ELF_TLS'
16 diff --git a/meson_options.txt b/meson_options.txt
17 index a7030ab..73bd28e 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -465,3 +465,9 @@ option(
21 value : true,
22 description : 'use msse2 flag for mingw x86. Default: true',
24 +option(
25 + 'use-elf-tls',
26 + type : 'boolean',
27 + value : false,
28 + description : 'Build support for initial-exec TLS model'