bfs: fix build on darwin

This commit is contained in:
Alan Pearce 2023-11-15 17:20:29 +01:00
parent 059727c23d
commit 241d2d4d72

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
# Disable LTO on darwin. See https://github.com/NixOS/nixpkgs/issues/19098
preConfigure = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile --replace "-flto" ""
substituteInPlace GNUMakefile --replace "-flto=auto" ""
'';
makeFlags = [ "PREFIX=$(out)" ];