numactl: enable on all linux platforms

This is a dependency of building VMs for e.g. ppc64 and riscv64 platform.

Also fixed an issue with linking libatomic on riscv.
This commit is contained in:
Ryan Burns 2021-02-19 17:15:00 -08:00
parent cb2bce709f
commit d84c45d407

View file

@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
patchShebangs test
'';
LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";
# You probably shouldn't ever run these! They will reconfigure Linux
# NUMA settings, which on my build machine makes the rest of package
# building ~5% slower until reboot. Ugh!
@ -26,6 +28,6 @@ stdenv.mkDerivation rec {
description = "Library and tools for non-uniform memory access (NUMA) machines";
homepage = "https://github.com/numactl/numactl";
license = with licenses; [ gpl2 lgpl21 ]; # libnuma is lgpl21
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
platforms = platforms.linux;
};
}