All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH V2] numactl: Link with libatomic on rv64/rv32
@ 2020-10-02 16:26 Khem Raj
  0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2020-10-02 16:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
v2: Also fix rv32

 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
-- 
2.28.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-02 16:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 16:26 [meta-oe][PATCH V2] numactl: Link with libatomic on rv64/rv32 Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.