Merge pull request #146529 from smancill/ZHF-convbin
convbin: fix build on darwin
commitb86b089c72f8f76d0128f2c132b4976a405e8c1b
authorRobert Scott <code@humanleg.org.uk>
dateThu 18 Nov 2021, 21:23 (5 years ago)
parente17aa2b9584a89
pkgs/tools/misc/convbin/default.nix+4
@@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
1313 sha256 = "sha256-zCRM62xwaPaN8+cg+CeaqK/9hKpZmSBBeUOQqAvQGYw=";
1414 };
1515
16+ postPatch = lib.optionalString stdenv.isDarwin ''
17+ substituteInPlace Makefile --replace "-flto" ""
18+ '';
19+
1620 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
1721
1822 checkPhase = ''