mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
busybox: Fix cross build with musl
This commit is contained in:
parent
8d62f62a78
commit
2fefa331e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user