From 3ae9262b4d29f126072388208de1d9ab28aa18b2 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sat, 4 Nov 2017 04:14:42 -0700 Subject: [PATCH] ocamlsdl: pass -unsafe-string in OMLFLAGS and MLFLAGS (#20253) so that the build doesn't fail with OCaml 4.06.0 --- Formula/ocamlsdl.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/ocamlsdl.rb b/Formula/ocamlsdl.rb index e4cfc27c92..4e32c9c2b3 100644 --- a/Formula/ocamlsdl.rb +++ b/Formula/ocamlsdl.rb @@ -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