Author: Ralf Treinen 
        Shayan Doust
Last-Update: 2020-06-21 22:04:51 +0100
Description: Build with recent ocaml

--- pplacer.orig/myocamlbuild.ml
+++ pplacer/myocamlbuild.ml
@@ -19,10 +19,7 @@
 module OCamlFind =
 struct
   (* this lists all supported packages *)
-  let find_packages () =
-    blank_sep_strings &
-      Lexing.from_string &
-      run_and_read "ocamlfind list | cut -d' ' -f1"
+  let find_packages () = ["batteries";"csv";"xmlm";"gsl";"sqlite3";"zip";"mcl";"oUnit"]
 
   (* this is supposed to list available syntaxes, but I don't know how to do it. *)
   let find_syntaxes () = ["camlp4o"; "camlp4r"]
@@ -190,8 +187,9 @@
     Batteries.before_options ();
 
     (* use static linking for native binaries *)
-    if not is_osx then
+    (*if not is_osx then
       flag ["link"; "ocaml"; "native"] (S[A"-ccopt"; A"-static"]);
+    *)
 
   | After_rules ->
     OCamlFind.after_rules ();
@@ -219,6 +217,9 @@
     if not is_osx then
       flag ["link"; "ocaml"; "native"] (S[A"-cclib"; A"-lpthread"]);
 
+    (* Link against impala library *)
+    flag ["link"; "ocaml"; "native"] (S[A"-cclib"; A"-limpala"]);
+
     (* custom: incorporate libraries into bytecode *)
     flag ["link"; "ocaml"; "byte"] (A"-custom");
 
