mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
pkgsCross.ppc64.linux: flatten makeFlags
Before the cgange: nix-repl> pkgsCross.ppc64.linux.makeFlags [ "O=$(buildRoot)" "CC=/06pbgv2957wl3wcpd2gljml719lw123njq9dhj7h6n2pv4nwgwhl/bin/powerpc64-unknown-linux-gnu-cc" "HOSTCC=/0calwri0wxl5mbjl5q80r1hm9hchyk8a7hhayk6cdfrxgbfbia3n/bin/cc" "ARCH=powerpc" [ ... ] ] After the change: nix-repl> pkgsCross.ppc64.linux.makeFlags [ "O=$(buildRoot)" "CC=/06pbgv2957wl3wcpd2gljml719lw123njq9dhj7h6n2pv4nwgwhl/bin/powerpc64-unknown-linux-gnu-cc" "HOSTCC=/0calwri0wxl5mbjl5q80r1hm9hchyk8a7hhayk6cdfrxgbfbia3n/bin/cc" "ARCH=powerpc" "CROSS_COMPILE=powerpc64-unknown-linux-gnu-" ]
This commit is contained in:
parent
9050439c4c
commit
8ab16e40be
|
@ -334,7 +334,7 @@ stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.linux-kernel kernelPat
|
|||
"CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"
|
||||
"HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
|
||||
"ARCH=${stdenv.hostPlatform.linuxArch}"
|
||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||
] ++ (stdenv.hostPlatform.linux-kernel.makeFlags or [])
|
||||
++ extraMakeFlags;
|
||||
|
|
Loading…
Reference in a new issue