Skip to contentSkip to conversation

fluentbit: Link with libatomic on riscv

PATCH New Khem Raj 1 participant 1 message Jan 29, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 fluentbit: Link with libatomic on riscv

jemalloc uses libatomic functions

Fixes
../lib/libjemalloc_pic.a(extent_dss.pic.o): in function `extent_dss_extend
ing_start':
| /usr/src/debug/fluentbit/1.3.5-r0/fluent-bit-1.3.5/lib/jemalloc-5.2.1/src/extent_dss.c:75: undefined reference to `__atomic_compare _exchange_1'

---
 meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb +2 -0
index d8cb8b5e85..06895a03aa 100644
@@ -43,6 +43,8 @@ EXTRA_OECMAKE += "-DFLB_SHARED_LIB=Off -DFLB_EXAMPLES=Off "
 
 EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES','systemd','-DFLB_SYSTEMD=On','',d)}"
 
+EXTRA_OECMAKE_append_riscv64 = " -DFLB_DEPS='atomic'"
+
 # Kafka Output plugin (disabled by default): note that when
 # enabling Kafka output plugin, the backend library librdkafka
 # requires 'openssl' as a dependency.
Signature · 1 line
2.25.0