I'm writing a META file to package some code, but this code
must be linked with a file.cm{o,x} that, being small, is not
packaged for findlib.
I added this in my META :
linkopts(byte) = "-I +subdir file.cmo"
linkopts(native) = "-I +subdir file.cmx"
So now when I compile programs that require my package these
options are added _at_the_end_ of the ocamlc command line ;
which is useless since this should be added before the package.
In other words, instead of this :
ocamlc mypackage.cma the_program.cmo -I +subdir file.cmo
I would like :
ocamlc -I +subdir file.cmo mypackage.cma the_program.cmo
Is there a way to obtain this or a similar effect ?
Or should I just write a META file for file.cm{o,x} ?