Unverified Commit c3b9f223 authored by superherointj's avatar superherointj Committed by GitHub
Browse files

dumb-init: fix dynamic compilation (#210030)

parent 4e9e5aea
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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