busybox: fix static build

+5 -3
+5 -3
pkgs/os-specific/linux/busybox/default.nix
··· 1 - { stdenv, fetchurl, musl 2 , enableStatic ? false 3 , enableMinimal ? false 4 , useMusl ? false ··· 48 49 CONFIG_LFS y 50 51 - ${stdenv.lib.optionalString enableStatic '' 52 CONFIG_STATIC y 53 ''} 54 ··· 64 EOF 65 66 make oldconfig 67 - '' + stdenv.lib.optionalString useMusl '' 68 makeFlagsArray+=("CC=gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib") 69 ''; 70 71 crossAttrs = { 72 extraCrossConfig = ''
··· 1 + { stdenv, lib, fetchurl, glibc, musl 2 , enableStatic ? false 3 , enableMinimal ? false 4 , useMusl ? false ··· 48 49 CONFIG_LFS y 50 51 + ${lib.optionalString enableStatic '' 52 CONFIG_STATIC y 53 ''} 54 ··· 64 EOF 65 66 make oldconfig 67 + '' + lib.optionalString useMusl '' 68 makeFlagsArray+=("CC=gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib") 69 ''; 70 + 71 + buildInputs = lib.optionals (enableStatic && !useMusl) [ glibc glibc.static ]; 72 73 crossAttrs = { 74 extraCrossConfig = ''