Skip to content

Commit

Permalink
nbench: supply stdenv.glibc.static since Makefile uses -static (#172173)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Adam Joseph authored May 9, 2022
1 parent b3f1be7 commit 3141204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/tools/misc/nbench/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 3141204

Please sign in to comment.