<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">diff --git meson.build meson.build
index e1e94e71049..96ab3fb3e45 100644
--- a/meson.build
+++ b/meson.build
@@ -481,6 +481,9 @@ foreach platform : _platforms
   pre_args += '-DHAVE_@0@_PLATFORM'.format(platform.to_upper())
 endforeach
 
+use_elf_tls = false
+with_use_elf_tls = get_option('use-elf-tls')
+if (not ['freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and with_use_elf_tls)
 use_elf_tls = true
 pre_args += '-DUSE_ELF_TLS'
 
@@ -491,6 +494,7 @@ if with_platform_android and get_option('platform-sdk-version') &gt;= 29
   c_args += '-fno-emulated-tls'
   cpp_args += '-fno-emulated-tls'
 endif
+endif
 
 # -mtls-dialect=gnu2 speeds up non-initial-exec TLS significantly but requires
 # full toolchain (including libc) support.
</pre></body></html>