Advertisement
Guest User

Untitled

a guest
Jun 21st, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Need to use ocamlfind ocamlc because ocamlfind knows which ocamlc to use when cross-compiling.
  2. Also the os_type check for ocamlbuild args needs to be against the host OS, not the target OS.
  3.  
  4. Finally setup.data gets the shared lib extension wrong (could be the cross-compiler's fault),
  5. so for now I run this:
  6. sed -i -e 's/.so/.dll/' setup.data
  7.  
  8. --- setup.ml 2012-06-09 14:18:57.715482995 +0300
  9. +++ setup.ml.ba1 2012-06-09 14:18:12.651931406 +0300
  10. @@ -2871,8 +2871,8 @@
  11.  
  12. module SMap = Map.Make(String)
  13.  
  14. - let ocamlc =
  15. - BaseCheck.prog_opt "ocamlc"
  16. + let ocamlc () =
  17. + BaseCheck.ocamlfind () ^ " ocamlc"
  18.  
  19. let ocamlc_config_map =
  20. (* Map name to value for ocamlc -config output
  21. @@ -5107,7 +5107,7 @@
  22. let fix_args args extra_argv =
  23. List.flatten
  24. [
  25. - if (os_type ()) = "Win32" then
  26. + if Sys.os_type = "Win32" then
  27. [
  28. "-classic-display";
  29. "-no-log";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement