Commit 241d2d4d authored by Alan Pearce's avatar Alan Pearce
Browse files

bfs: fix build on darwin

parent 059727c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)" ];