[Omake] OcamlProgram(): how to link a single .cmo/.cmx?
Dmitry Bely
dmitry.bely at gmail.com
Wed Dec 5 11:28:31 PST 2007
On Dec 5, 2007 8:26 PM, Aleksey Nogin <anogin at hrl.com> wrote:
> > External .cma/.cmxa library can be linked as follows:
> >
> > OCAML_OTHER_LIBS = ...
> > OcamlProgram(...)
> >
> > But what should I do if I have to link a single external .cmo/.cmx?
>
> Why do you need to make a distinction between the "internal" and
> "external" .cmo/.cmx? You should be able to link any .cmo/.cmx in by
> passing it (without the suffix) in second argument to OCamlProgam.
Won't work: this .cmo should be searched by Ocaml compiler during link
stage as it is done for $(OCAML_OTHER_LIBS) and all omake dependencies
should be relaxed; if I just pass it as an argument to OcamlProgram()
omake will complain that it does not know how to build that file.
- Dmitry Bely
More information about the Omake
mailing list