busybox: Fix cross build with musl

This commit is contained in:
Tuomas Tynkkynen 2016-06-01 22:52:03 +03:00
parent 8d62f62a78
commit 2fefa331e7

View File

@ -64,7 +64,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")
'';
@ -73,10 +77,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;