Skip to content

Commit

Permalink
busybox: fix static builds
Browse files Browse the repository at this point in the history
Fixes #52074
  • Loading branch information
matthewbauer committed Aug 28, 2019
1 parent bb79cc9 commit b4f6931
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkgs/os-specific/linux/busybox/default.nix
@@ -1,7 +1,7 @@
{ stdenv, lib, buildPackages, fetchurl
, enableStatic ? false
, enableMinimal ? false
, useMusl ? stdenv.hostPlatform.libc == "musl", musl
, useMusl ? stdenv.hostPlatform.libc == "musl"
, extraConfig ? ""
}:

Expand Down Expand Up @@ -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 ];
Expand Down

0 comments on commit b4f6931

Please sign in to comment.