dumb-init: fix dynamic compilation (#210030)
This commit is contained in:
parent
4e9e5aeafe
commit
c3b9f2238f
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-aRh0xfmp+ToXIYjYaducTpZUHndZ5HlFZpFhzJ3yKgs=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc.static ];
|
||||
postPatch = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
|
||||
substituteInPlace Makefile --replace "-static" ""
|
||||
'';
|
||||
|
||||
buildInputs = lib.optional (stdenv.hostPlatform.isGnu && stdenv.hostPlatform.isStatic) glibc.static;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
|
Loading…
Reference in a new issue