Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link with -latomic if needed (again ...)
numactl unconditionally uses __atomic_fetch_and but some architectures (e.g. sparc) needs to link with -latomic to be able to use it. So check if -latomic is needed and update numa.pc accordingly. This linking was made by e0de0d9 but wrongly reverted by 10c277c resulting in the following build failure on sparc or microblaze: /nvmedata/autobuild/instance-7/output-1/per-package/numactl/host/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: ./.libs/libnuma.a(libnuma.o): in function `numa_police_memory': libnuma.c:(.text+0xe28): undefined reference to `__atomic_fetch_and_1' Fixes: - http://autobuild.buildroot.org/results/54b7567d804d9abff56f47cd26bae774c1e38669 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
- Loading branch information