Am Dienstag, den 03.03.2015, 14:15 +0100 schrieb François Bobot: > Hi everyone, > > I'm wondering how people are handling dependencies between libraries dynamically linked. > > Even if many libraries compile a cmxs and have in their META file `archive(plugin,native)=...`. I > know only one tool that uses this information: the ocsigen server. The code to gather all the cmxs > or cma is not hard to write, thanks to findlib: > > https://github.com/ocsigen/ocsigenserver/blob/master/src/baselib/ocsigen_loader.ml#L165 > > Does someone wrote a library that does that? > > Gerd, do you think that something that does that could be added to ocamlfind? One tricky thing is to > know the library statically linked (ie. `Ocsigen_config.builtin_packages`), perhaps ocamlfind can > during linking add this information. I think so. For toploops, there is already code that tracks libraries already linked into the executable (i.e. if you ocamlmktop your toploop). Gerd > > Regards, > > -- > François > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------