]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libc-test: limit libatomic-staticdev ptest dependency to GCC
authorHemanth Kumar M D <Hemanth.KumarMD@windriver.com>
Wed, 27 May 2026 13:35:13 +0000 (06:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 May 2026 10:21:53 +0000 (11:21 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/musl/libc-test_git.bb

index d9999ec3770bd92824f4523076c962438146a77c..15a2ce42f7c43f89dedd49ccd7eea6d2ab089e31 100644 (file)
@@ -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}/*"