numactl: Link with libatomic on rv64/rv32

Submitted by Khem Raj on Nov. 4, 2020, 6:24 a.m. | Patch ID: 177891

Details

Message ID 20201104062403.1795146-1-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj Nov. 4, 2020, 6:24 a.m.
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'

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-support/numactl/numactl_git.bb | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.29.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144250): https://lists.openembedded.org/g/openembedded-core/message/144250
Mute This Topic: https://lists.openembedded.org/mt/78024012/1003190
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/recipes-support/numactl/numactl_git.bb b/meta/recipes-support/numactl/numactl_git.bb
index 5640173aa9..6c8a667a41 100644
--- a/meta/recipes-support/numactl/numactl_git.bb
+++ b/meta/recipes-support/numactl/numactl_git.bb
@@ -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