3
0
Fork 0
forked from mirrors/nixpkgs

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
This commit is contained in:
Adam Joseph 2022-05-09 20:54:42 +00:00 committed by GitHub
parent b3f1be780c
commit 3141204b22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = ''