]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Build tst-gnu2-tls2-x86* iff compiler supports TLS descriptor
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 5 Feb 2026 17:49:59 +0000 (14:49 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 11 Feb 2026 13:26:49 +0000 (10:26 -0300)
The test modules are built with
-mtls-dialect=$(have-test-mtls-descriptor), similar to tst-gnu2-tls2.

Checked on x86_64-linux-gnu.

sysdeps/x86/Makefile

index e32a430bb97f2bba715f7e8633d01765cf2917cb..b16f4a34049ef9777b28f654edd3044330374e05 100644 (file)
@@ -27,11 +27,15 @@ tests += \
   tst-cpu-features-supports-static \
   tst-get-cpu-features \
   tst-get-cpu-features-static \
+  tst-hwcap-tunables \
+# tests
+ifneq (no,$(have-test-mtls-descriptor))
+tests += \
   tst-gnu2-tls2-x86-noxsave \
   tst-gnu2-tls2-x86-noxsavec \
   tst-gnu2-tls2-x86-noxsavexsavec \
-  tst-hwcap-tunables \
 # tests
+endif
 tests-static += \
   tst-cpu-features-cpuinfo-static \
   tst-cpu-features-supports-static \