bsansouci / bsb-native

Build system for OCaml/Reason
Other
245 stars 10 forks source link

Use -package for otherlibs when building with ocamlfind #19

Closed bsansouci closed 6 years ago

bsansouci commented 6 years ago

Currently, when someone depends on a package on opam that indirectly depends on Unix, we'll link Unix twice (same as for all otherlibs, which is Bigarray, Unix, Dynlink, Threads ...) and there will be an error (or warning?). The reason is that we simply called ocamlfind like ocamlfind ocamlc unix.cma usercode.cmo ..... Ocamlfind can actually receive those otherlibs packages through -package unix, which will dedupe them.

bsansouci commented 6 years ago

Fix in release 2.1.1