ocamlbuild: explicit 'linkpkg' and 'dontlink(foo)' flags
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15670 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
322a3105b3
commit
8be30254e2
2
Changes
2
Changes
|
@ -49,6 +49,8 @@ Toplevel and debugger:
|
|||
OCamlbuild:
|
||||
- PR#6712: Ignore common VCS directories
|
||||
(Peter Zotov)
|
||||
- explicit "linkpkg" and "dontlink(foo)" flags
|
||||
(Peter Zotov, Gabriel Scherer)
|
||||
|
||||
Bug fixes:
|
||||
- PR#5836, PR#6684: printing lazy values in ocamldebug may segfault
|
||||
|
|
|
@ -560,6 +560,14 @@ let () =
|
|||
flag ["ocaml"; "link"; "program"] & A"-linkpkg";
|
||||
flag ["ocaml"; "link"; "toplevel"] & A"-linkpkg";
|
||||
|
||||
(* "program" will make sure that -linkpkg is passed when compiling
|
||||
whole-programs (.byte and .native); but it is occasionally
|
||||
useful to pass -linkpkg when building archives for example
|
||||
(.cma and .cmxa); the "linkpkg" flag allows user to request it
|
||||
explicitly. *)
|
||||
flag ["ocaml"; "link"; "linkpkg"] & A"-linkpkg";
|
||||
pflag ["ocaml"; "link"] "dontlink" (fun pkg -> S[A"-dontlink"; A pkg]);
|
||||
|
||||
let all_tags = [
|
||||
["ocaml"; "byte"; "compile"];
|
||||
["ocaml"; "native"; "compile"];
|
||||
|
|
Loading…
Reference in New Issue