aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-10-25 10:02:15 -0700
committerKhem Raj <raj.khem@gmail.com>2021-10-25 10:40:50 -0700
commitc2aafe4737043c3b339a0283e9c7060a89bb21e5 (patch)
treef373b07e2c6769bf0b3b1f22204964bd92ec0ff6
parent2178fd7386646dc779a075bc65a5008d3b62e027 (diff)
downloadmeta-openembedded-contrib-c2aafe4737043c3b339a0283e9c7060a89bb21e5.tar.gz
meta-openembedded-contrib-c2aafe4737043c3b339a0283e9c7060a89bb21e5.tar.bz2
meta-openembedded-contrib-c2aafe4737043c3b339a0283e9c7060a89bb21e5.zip
tbb: Link with libatomic when using clang compiler on rv32
This helps fixing opencv builds where lack of libatomic link in tbb ends up with build failures e.g. riscv32-yoe-linux-ld: lib/libopencv_core.so.4.5.2: undefined reference to `__atomic_fetch_add_8' Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/tbb/tbb_2021.2.0.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb b/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb
index 36ca8f91ae..c726bef3b5 100644
--- a/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb
+++ b/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb
@@ -45,6 +45,7 @@ ASNEEDED = ""
LDFLAGS:append:mips = " -latomic"
LDFLAGS:append:mipsel = " -latomic"
+LDFLAGS:append:riscv32:toolchain-clang = " -latomic"
LDFLAGS:append:libc-musl = " -lucontext"