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:
parent
b3f1be780c
commit
3141204b22
|
@ -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…
Reference in a new issue