Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Original bug ID: 6702
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:37:12Z)
Fixed in version: 4.03.0+dev / +beta1
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @gasche
Specifically I need this for a peculiar toplevel extension:
ocamlc -a -linkpkg -dontlink compiler-libs.common ...
linkpkg and dontlink(...) could be exported as flags:
flag ["ocaml"; "link"; "linkpkg"] & A"-linkpkg";
pflag ["ocaml"; "link"] "dontlink" (fun pkg -> S[A"-dontlink"; A pkg]);
The text was updated successfully, but these errors were encountered:
Comment author: @gasche
If I'm not mistaken, -linkpkg and -dontlink are ocamlfind options, not ocamlc options. -linkpkg is added automatically at link-time when -use-ocamlfind is passed, so your first "flag" comment seems subsumed by what's already there:
The -dontlink pflag looks like an excellent idea.
Could you confirm that the -linkpkg one is unnecessary, or explain why you need it?
Sorry, something went wrong.
Comment author: @whitequark
What I wanted is to make a cma that includes cmas from other packages. Passing linkpkg to ocamlc -a explicitly does exactly this.
I have since used a different implementation, however it might still be useful.
Implemented in trunk.
Successfully merging a pull request may close this issue.