There was a similar question here before: Ocaml cross compiler? See also the ocaml-cross project on GitHub.