ocamlsdl: set safe-string=0 for OCaml 4.06.0 compat

This commit is contained in:
ilovezfs 2017-11-04 14:26:32 -07:00
parent 925ca60945
commit fb92627b54

View file

@ -20,10 +20,10 @@ class Ocamlsdl < Formula
depends_on "sdl_ttf" => :recommended
def install
ENV["OCAMLPARAM"] = "safe-string=0,_" # OCaml 4.06.0 compat
system "./configure", "--prefix=#{prefix}",
"OCAMLLIB=#{lib}/ocaml"
system "make", "OMLFLAGS = -unsafe -unsafe-string",
"MLFLAGS=-g -unsafe-string"
system "make"
system "make", "install"
end