summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-11-03 22:24:03 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-08 14:03:16 +0000
commitea70d7f8f78cd793242cf6804840507d2ebd2871 (patch)
tree4dbb13548b2ea139409c13822183777ababda9a8 /meta/recipes-support
parentbbe84a33c81066fee96dd28a4009d8404b51e642 (diff)
downloadopenembedded-core-ea70d7f8f78cd793242cf6804840507d2ebd2871.tar.gz
openembedded-core-ea70d7f8f78cd793242cf6804840507d2ebd2871.tar.bz2
openembedded-core-ea70d7f8f78cd793242cf6804840507d2ebd2871.zip
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' Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/numactl/numactl_git.bb3
1 files changed, 3 insertions, 0 deletions
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