Skip to contentSkip to conversation

numactl: Link with libatomic on rv64

PATCH Superseded Khem Raj 1 participant 1 message Sep 30, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 numactl: Link with libatomic on rv64

Fixes
riscv64-yoe-linux/10.2.0/ld: ./.libs/libnuma.so: undefined reference to `__atomic_fetch_and_1'

---
 meta-oe/recipes-support/numactl/numactl_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-support/numactl/numactl_git.bb +2 -0
index 75e4435db0..2fadff1956 100644
@@ -25,6 +25,8 @@ S = "${WORKDIR}/git"
 # ARM does not currently support NUMA
 COMPATIBLE_HOST = "^((?!arm).*)$"
 
+LDFLAGS_append_riscv64 = " -latomic"
+
 do_install() {
     oe_runmake DESTDIR=${D} prefix=${D}/usr install
     #remove the empty man2 directory
Signature · 1 line
2.28.0