nbench: supply stdenv.glibc.static since Makefile uses -static (#172173)

* nbench: supply stdenv.glibc.static since Makefile uses -static

nbench's Makefile always compiles with -static, so we need it to be
able to see libc.a.  Let's add stdenv.glibc.static to the buildInputs.

* predicate on isGnu
main
Adam Joseph 2 years ago committed by GitHub
parent b3f1be780c
commit 3141204b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkgs/tools/misc/nbench/default.nix

@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace "-static" ""
'';
buildInputs = lib.optionals stdenv.hostPlatform.isGnu [
stdenv.glibc.static
];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = ''

Loading…
Cancel
Save