From a599b850dc124444d06fbb5d48734c134325ac0c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 30 Sep 2020 13:35:11 -0700 Subject: [PATCH] numactl: Link with libatomic on rv64/rv32 Fixes riscv64-yoe-linux/10.2.0/ld: ./.libs/libnuma.so: undefined reference to `__atomic_fetch_and_1' Signed-off-by: Khem Raj --- meta-oe/recipes-support/numactl/numactl_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-oe/recipes-support/numactl/numactl_git.bb b/meta-oe/recipes-support/numactl/numactl_git.bb index 75e4435db0..504fe03275 100644 --- a/meta-oe/recipes-support/numactl/numactl_git.bb +++ b/meta-oe/recipes-support/numactl/numactl_git.bb @@ -25,6 +25,9 @@ S = "${WORKDIR}/git" # ARM does not currently support NUMA COMPATIBLE_HOST = "^((?!arm).*)$" +LDFLAGS_append_riscv64 = " -latomic" +LDFLAGS_append_riscv32 = " -latomic" + do_install() { oe_runmake DESTDIR=${D} prefix=${D}/usr install #remove the empty man2 directory