We have also some code doing that there: https://github.com/hammerlab/ketrew/blob/master/src/lib/pure/ketrew_plugin.ml#L52 One of the tricks used is that, at configure time, the list of findlib packages already linked is given to the library itself to avoid double loading. On Tue, Mar 3, 2015 at 9:32 AM, Ivan Gotovchits wrote: > But beware that Stog code is distributed under the terms of GPL v3. > > You may be also interested in JaneStreets ocaml-plugin library. > > On Tue, Mar 3, 2015 at 9:23 AM, François Bobot > wrote: > >> On 03/03/2015 14:40, Gabriel Scherer wrote: >> >>> Maxence Guesdon's static blog/website generator Stog ( >>> https://zoggy.github.io/stog/index.html ) >>> supports dynamic plugins, and its loading code is available at >>> >>> https://github.com/zoggy/stog/blob/e83c363c83465a7bfd1595816b3d9b >>> c8331af560/stog_dyn.ml#L119-L146 >>> >>> It also uses ocamlfind, but through the command-line rather than the >>> Findlib library. >>> >> >> Thank you for the pointer. His code is even able to create cmxs from cmxa >> if needed! >> >> >> -- >> François >> >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >> > >