git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #62842 from lopsided98/lkl-cross
b22fa4eMatthew Bauer
pkgs/applications/virtualization/lkl/default.nix+8−2
@@ -1,4 +1,5 @@
1−{ stdenv, fetchFromGitHub, bc, python, bison, flex, fuse, libarchive }:
1+{ stdenv, fetchFromGitHub, bc, python, bison, flex, fuse, libarchive
2+, buildPackages }:
2
3
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" ];
42
43
43− makeFlags = "-C tools/lkl";
44+ makeFlags = [
45+ "-C tools/lkl"
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}"
49+ ];
44
50
45 enableParallelBuilding = true;
51 enableParallelBuilding = true;
46
52