swh:1:snp:2d869aa00591d2ac8ec8e7abacdda563d413189d
Tip revision: 5b8fcdc2d5585096b98c8287b99aeb0e1747caf5 authored by Roberto Di Cosmo on 25 January 2012, 16:50:25 UTC
Adapted configure and Makefile_3.11.in to OCaml compilers without support
Adapted configure and Makefile_3.11.in to OCaml compilers without support
Tip revision: 5b8fcdc
myocamlbuild.ml
open Ocamlbuild_plugin ;;
let _ = dispatch begin function
| After_rules ->
dep ["compile"; "c"] ["config.h"];
(* flag ["ocaml"; "compile"] & S[A"-ccopt"; A"-O9"]; *)
flag ["compile"; "c"] & S[ A"-ccopt"; A"-D_GNU_SOURCE"; A"-ccopt"; A"-fPIC" ];
flag ["link"; "library"; "ocaml"; "byte"; "use_libparmap"] &
S[A"-dllib"; A"-lparmap_stubs";];
flag ["link"; "library"; "ocaml"; "native"; "use_libparmap"] &
S[A"-cclib"; A"-lparmap_stubs"];
dep ["link"; "ocaml"; "use_libparmap"] ["libparmap_stubs.a"];
flag ["link"; "ocaml"; "link_libparmap"] (A"libparmap_stubs.a");
| _ -> ()
end