Skip to contentSkip to conversation

numactl: Link with libatomic on rv64/rv32

PATCH New Khem Raj 1 participant 1 message Nov 4, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 numactl: Link with libatomic on rv64/rv32

bring a missing commit from meta-oe

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

---
 meta/recipes-support/numactl/numactl_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-support/numactl/numactl_git.bb +3 -0
index 5640173aa9..6c8a667a41 100644
@@ -22,6 +22,9 @@ SRC_URI = "git://github.com/numactl/numactl \
 
 S = "${WORKDIR}/git"
 
+LDFLAGS_append_riscv64 = " -latomic"
+LDFLAGS_append_riscv32 = " -latomic"
+
 do_install() {
     oe_runmake DESTDIR=${D} prefix=${D}/usr install
     #remove the empty man2 directory
Signature · 1 line
2.29.2