Skip to contentSkip to conversation

rocksdb: Link with pthreads on riscv

PATCH New Khem Raj 1 participant 1 message Apr 22, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 rocksdb: Link with pthreads on riscv

Fixes
librocksdb.so.6.6.4: undefined reference to `__atomic_compare_exchange_1'
collect2: error: ld returned 1 exit status

---
 meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb +2 -0
index addf9552b5..b9038df81d 100644
@@ -39,3 +39,5 @@ do_install_append() {
     # fix for qa check buildpaths
     sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
 }
+
+LDFLAGS_append_riscv64 = " -pthread"
Signature · 1 line
2.26.2