ocamlsdl: pass -unsafe-string in OMLFLAGS and MLFLAGS (#20253)

so that the build doesn't fail with OCaml 4.06.0
This commit is contained in:
ilovezfs 2017-11-04 04:14:42 -07:00 committed by GitHub
parent c5a8b06a5e
commit 3ae9262b4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,8 @@ class Ocamlsdl < Formula
def install
system "./configure", "--prefix=#{prefix}",
"OCAMLLIB=#{lib}/ocaml"
system "make"
system "make", "OMLFLAGS = -unsafe -unsafe-string",
"MLFLAGS=-g -unsafe-string"
system "make", "install"
end