busybox: fix musl builds

You shouldn’t need to add anything with musl builds. The libc will
configure these values for you.
This commit is contained in:
Matthew Bauer 2019-02-12 22:34:37 -05:00 committed by Domen Kožar
parent 85210e13e5
commit 5ba8c04ae5
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246

View File

@ -1,7 +1,7 @@
{ stdenv, lib, buildPackages, fetchurl
, enableStatic ? false
, enableMinimal ? false
, useMusl ? stdenv.hostPlatform.libc == "musl", musl
, useMusl ? stdenv.hostPlatform.libc == "musl"
, extraConfig ? ""
}:
@ -88,10 +88,6 @@ 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 ];