dumb-init: fix dynamic compilation (#210030)

This commit is contained in:
superherointj 2023-01-11 06:17:26 -03:00 committed by GitHub
parent 4e9e5aeafe
commit c3b9f2238f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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