From 558bc2227ed00fc6a29c2a10c0b99719cd445c6c Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Mon, 6 Dec 2021 20:16:19 +0100 Subject: [PATCH] meson: check -mtls if has_exe_wrapper Fixes: 60d95c5d (Auto-enable TLSDESC support) Reviewed-by: Emma Anholt Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 53ec2c2..c987073 100644 --- a/meson.build +++ b/meson.build @@ -502,7 +502,7 @@ endforeach if not have_mtls_dialect # need .run to check libc support. meson aborts when calling .run when # cross-compiling, but because this is just an optimization we can skip it - if meson.is_cross_build() + if meson.is_cross_build() and not meson.has_exe_wrapper() warning('cannot auto-detect -mtls-dialect when cross-compiling, using compiler default') else # -fpic to force dynamic tls, otherwise TLS relaxation defeats check -- 2.7.4