Revert "busybox: fix musl builds"
This reverts commit 5ba8c04ae5
.
Broke non-musl busybox.
fixes: #70007
This commit is contained in:
parent
e8f4b4bc27
commit
64d821d9f4
@ -1,7 +1,7 @@
|
||||
{ stdenv, lib, buildPackages, fetchurl
|
||||
, enableStatic ? false
|
||||
, enableMinimal ? false
|
||||
, useMusl ? stdenv.hostPlatform.libc == "musl"
|
||||
, useMusl ? stdenv.hostPlatform.libc == "musl", musl
|
||||
, extraConfig ? ""
|
||||
}:
|
||||
|
||||
@ -88,6 +88,10 @@ stdenv.mkDerivation rec {
|
||||
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 ];
|
||||
|
||||
buildInputs = lib.optionals (enableStatic && !useMusl && stdenv.cc.libc ? static) [ stdenv.cc.libc stdenv.cc.libc.static ];
|
||||
|
Loading…
Reference in New Issue
Block a user