The needed atomics are not available in compiler
libtorrent.so: undefined reference to `__atomic_exchange_8'

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb 
b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
index 3ee69554b6..fa5e829c9f 100644
--- a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
+++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
@@ -26,6 +26,8 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}"
 
+LDFLAGS_append_riscv32 = " -latomic"
+
 do_configure_prepend() {
     (cd ${S}; ./autogen.sh; cd -)
 }
-- 
2.29.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#87945): 
https://lists.openembedded.org/g/openembedded-devel/message/87945
Mute This Topic: https://lists.openembedded.org/mt/78260845/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to