@@ -1,4 +1,5 @@
1−{ stdenv, fetchFromGitHub, bc, python, bison, flex, fuse, libarchive }:
1+{ stdenv, fetchFromGitHub, bc, python, bison, flex, fuse, libarchive
3stdenv.mkDerivation rec {
4stdenv.mkDerivation rec {
4 name = "lkl-2018-08-22";
5 name = "lkl-2018-08-22";
@@ -40,7 +41,12 @@ stdenv.mkDerivation rec {
40 # crypto/jitterentropy.c:54:3: error: #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c."
41 # crypto/jitterentropy.c:54:3: error: #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c."
41 hardeningDisable = [ "format" "fortify" ];
42 hardeningDisable = [ "format" "fortify" ];
43− makeFlags = "-C tools/lkl";
44+ makeFlags = [
46+ "CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"
47+ "HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
48+ "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
45 enableParallelBuilding = true;
51 enableParallelBuilding = true;