Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-07-21 00:56:43 +00:00
226 changed files with 6549 additions and 1215 deletions
+10 -5
View File
@@ -66,7 +66,11 @@ stdenv.mkDerivation rec {
EOF
make oldconfig
'' + lib.optionalString useMusl ''
runHook postConfigure
'';
postConfigure = lib.optionalString useMusl ''
makeFlagsArray+=("CC=gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib")
'';
@@ -75,10 +79,11 @@ stdenv.mkDerivation rec {
crossAttrs = {
extraCrossConfig = ''
CONFIG_CROSS_COMPILER_PREFIX "${stdenv.cross.config}-"
'' +
(if stdenv.cross.platform.kernelMajor == "2.4" then ''
CONFIG_IONICE n
'' else "");
'';
postConfigure = stdenv.lib.optionalString useMusl ''
makeFlagsArray+=("CC=$crossConfig-gcc -isystem ${musl.crossDrv}/include -B${musl.crossDrv}/lib -L${musl.crossDrv}/lib")
'';
};
enableParallelBuilding = true;