stress-ng: workaround kernel header SNAFU re:sysinfo, fix w/musl

This commit is contained in:
Will Dietz 2019-09-14 18:12:36 -05:00
parent 3eb894e55b
commit 31be449657
No known key found for this signature in database
GPG Key ID: EBB0EA4124809D02

View File

@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace "/usr" ""
'';
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1";
# Won't build on i686 because the binary will be linked again in the
# install phase without checking the dependencies. This will prevent
# triggering the rebuild. Why this only happens on i686 remains a