kexec-tools: use depsBuildBuild to get the right compiler

Need this to avoid this issue in pkgsStatic:

  ld: cannot find -lc

/cc @ericson2314
This commit is contained in:
Matthew Bauer 2019-04-26 18:04:29 -04:00
parent 58c473985c
commit c1287a4b9c

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" "pic" "relro" "pie" ];
configureFlags = [ "BUILD_CC=${buildPackages.stdenv.cc.targetPrefix}cc" ];
nativeBuildInputs = [ buildPackages.stdenv.cc ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [ zlib ];
meta = with stdenv.lib; {