* [meta-oe][PATCH] tbb: Link with libatomic when using clang compiler on rv32
@ 2021-10-25 17:04 Khem Raj
0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2021-10-25 17:04 UTC (permalink / raw)
To: openembedded-devel; +Cc: Khem Raj
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>
---
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 1 +
1 file changed, 1 insertion(+)
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"
--
2.33.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-25 17:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 17:04 [meta-oe][PATCH] tbb: Link with libatomic when using clang compiler on rv32 Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.