busybox: don't use utmp/wtmp on musl since they won't work anyway
https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality-only-implemented-as-stubs?
This commit is contained in:
parent
2fb4606f38
commit
b78025586b
1 changed files with 8 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
{ stdenv, lib, buildPackages, fetchurl, fetchpatch
|
||||
, enableStatic ? false
|
||||
, enableMinimal ? false
|
||||
, useMusl ? false, musl
|
||||
, useMusl ? stdenv.hostPlatform.libc == "musl", musl
|
||||
, extraConfig ? ""
|
||||
, buildPlatform, hostPlatform
|
||||
}:
|
||||
|
||||
assert stdenv.hostPlatform.libc == "musl" -> useMusl;
|
||||
|
||||
let
|
||||
configParser = ''
|
||||
function parseconfig {
|
||||
|
@ -24,6 +26,10 @@ let
|
|||
}
|
||||
'';
|
||||
|
||||
libcConfig = lib.optionalString useMusl ''
|
||||
CONFIG_FEATURE_UTMP n
|
||||
CONFIG_FEATURE_WTMP n
|
||||
'';
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -69,6 +75,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
${extraConfig}
|
||||
CONFIG_CROSS_COMPILER_PREFIX "${stdenv.cc.targetPrefix}"
|
||||
${libcConfig}
|
||||
EOF
|
||||
|
||||
make oldconfig
|
||||
|
|
Loading…
Reference in a new issue