3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #146529 from smancill/ZHF-convbin

convbin: fix build on darwin
This commit is contained in:
Robert Scott 2021-11-18 21:23:05 +00:00 committed by GitHub
commit b86b089c72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-zCRM62xwaPaN8+cg+CeaqK/9hKpZmSBBeUOQqAvQGYw=";
};
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile --replace "-flto" ""
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
checkPhase = ''