diff options
| author | Khem Raj <raj.khem@gmail.com> | 2020-09-30 13:35:11 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-10-01 10:35:21 -0700 |
| commit | a599b850dc124444d06fbb5d48734c134325ac0c (patch) | |
| tree | cd6f348b568138a199e3f553292266bf123e0c4e | |
| parent | d80b5a52fd9d91b27b7f1967a0f2d6ccb6e22991 (diff) | |
| download | meta-openembedded-a599b850dc124444d06fbb5d48734c134325ac0c.tar.gz | |
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 <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/numactl/numactl_git.bb | 3 |
1 files changed, 3 insertions, 0 deletions
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" | |||
| 25 | # ARM does not currently support NUMA | 25 | # ARM does not currently support NUMA |
| 26 | COMPATIBLE_HOST = "^((?!arm).*)$" | 26 | COMPATIBLE_HOST = "^((?!arm).*)$" |
| 27 | 27 | ||
| 28 | LDFLAGS_append_riscv64 = " -latomic" | ||
| 29 | LDFLAGS_append_riscv32 = " -latomic" | ||
| 30 | |||
| 28 | do_install() { | 31 | do_install() { |
| 29 | oe_runmake DESTDIR=${D} prefix=${D}/usr install | 32 | oe_runmake DESTDIR=${D} prefix=${D}/usr install |
| 30 | #remove the empty man2 directory | 33 | #remove the empty man2 directory |
