On Mon, Sep 21, 2015 at 11:58 PM, Gabriel Scherer <gabriel.scherer@gmail.com> wrote:
> I don't (yet) need dynamic linking; my current main aim with the .mllib setup is to specify the package dependencies for each plugin in its > own section of the _tags file, and not have a long list of every plugin's dependencies in the main module.

Well, that doesn't quite work: you need to have the ocamlfind packages
passed to the command linking the final executable.

I suppose changing
  <**/puz.*>: ...
to
  <**/puz.*> or <file.*>: ...
could work, as this line seems to pass all the libraries flags.

Isn't there any way with a .cmxa to compile the dependencies into a library and then just have the library as a link-time dependency for the main project? I can imagine things getting pretty messy once I have several plugins and have to concatenate all their package deps into the file.* tags line.

martin