diff options
Diffstat (limited to 'user/mesa-amber/no-tls.patch')
-rw-r--r-- | user/mesa-amber/no-tls.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/user/mesa-amber/no-tls.patch b/user/mesa-amber/no-tls.patch new file mode 100644 index 000000000..803fa3707 --- /dev/null +++ b/user/mesa-amber/no-tls.patch @@ -0,0 +1,25 @@ +--- mesa-21.3.8/meson.build.old 2022-03-18 14:26:47.000000000 -0500 ++++ mesa-21.3.8/meson.build 2022-05-30 00:00:21.689085198 -0500 +@@ -508,22 +508,7 @@ + error('-Degl-native-platform does not specify an enabled platform') + endif + +-# Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS. + use_elf_tls = false +-if (not ['freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and +- (not with_platform_android or get_option('platform-sdk-version') >= 29) and +- (not with_platform_windows or not with_shared_glapi)) +- pre_args += '-DUSE_ELF_TLS' +- use_elf_tls = true +- +- if with_platform_android +- # By default the NDK compiler, at least, emits emutls references instead of +- # ELF TLS, even when building targeting newer API levels. Make it actually do +- # ELF TLS instead. +- c_args += '-fno-emulated-tls' +- cpp_args += '-fno-emulated-tls' +- endif +-endif + + if with_glx != 'disabled' + if not (with_platform_x11 and with_any_opengl) |