diff mbox series

[v4,7/7] libc-test: limit libatomic-staticdev ptest dependency to GCC

Message ID 20260527124414.1728434-8-Hemanth.KumarMD@windriver.com
State New
Headers show
Series gcc: Upgrade GCC to 16.1 release | expand

Commit Message

Hemanth Kumar M D May 27, 2026, 12:44 p.m. UTC
From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>

clang does not require libatomic-staticdev for the libc-test
static tests. Restrict the dependency addition to GCC toolchain
using the toolchain-gcc override.

Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
---
 meta/recipes-core/musl/libc-test_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/musl/libc-test_git.bb b/meta/recipes-core/musl/libc-test_git.bb
index d9999ec377..15a2ce42f7 100644
--- a/meta/recipes-core/musl/libc-test_git.bb
+++ b/meta/recipes-core/musl/libc-test_git.bb
@@ -36,13 +36,14 @@  RDEPENDS:${PN} = " \
 
 RDEPENDS:${PN}-ptest = " \
      ${PN} \
-     libatomic-staticdev \
      locale-base-en-us \
      musl-staticdev \
      sed \
      tzdata \
 "
 
+RDEPENDS:${PN}-ptest:append:toolchain-gcc = " libatomic-staticdev"
+
 install_path = "/opt/${PN}"
 FILES:${PN} += "${install_path}/*"