Merge pull request #70023 from Mic92/busybox
Revert "busybox: fix musl builds"
This commit is contained in:
commit
a702db71a1
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, lib, buildPackages, fetchurl
|
{ stdenv, lib, buildPackages, fetchurl
|
||||||
, enableStatic ? false
|
, enableStatic ? false
|
||||||
, enableMinimal ? false
|
, enableMinimal ? false
|
||||||
, useMusl ? stdenv.hostPlatform.libc == "musl"
|
, useMusl ? stdenv.hostPlatform.libc == "musl", musl
|
||||||
, extraConfig ? ""
|
, extraConfig ? ""
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -88,6 +88,10 @@ stdenv.mkDerivation rec {
|
||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postConfigure = lib.optionalString useMusl ''
|
||||||
|
makeFlagsArray+=("CC=${stdenv.cc.targetPrefix}cc -isystem ${musl.dev}/include -B${musl}/lib -L${musl}/lib")
|
||||||
|
'';
|
||||||
|
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
|
||||||
buildInputs = lib.optionals (enableStatic && !useMusl && stdenv.cc.libc ? static) [ stdenv.cc.libc stdenv.cc.libc.static ];
|
buildInputs = lib.optionals (enableStatic && !useMusl && stdenv.cc.libc ? static) [ stdenv.cc.libc stdenv.cc.libc.static ];
|
||||||
|
|
Loading…
Reference in a new issue