When compiling with MinGW, use of the __thread attribute causes pixman to gain a dependency on the winpthread DLL. With Autotools, this could be avoided by configuring with ac_cv_tls=none, causing pixman to fall back to TlsSetValue() instead.
Add a Meson 'tls' option that can be 'disabled' to skip support for TLS compiler attributes, or 'enabled' to require a working TLS attribute.
421fc25 meson: Add feature to disable compiler TLS support
meson.build | 28 +++++++++++++++++++---------
meson_options.txt | 5 +++++
2 files changed, 24 insertions(+), 9 deletions(-)
Upstream: cgit.freedesktop.org