Hi everyone,

I recently tried installing some packages in OPAM using the ocaml-4.02.3-musl-static compiler. One of them failed because it includes some C stubs, and the build script, which was generated by Oasis, blithely assumed dynlink support. After a bit of digging, I found this line. This seems to be in error to me. Shouldn’t the line read:

if has_native_dynlink [["dll"^cs.cs_name^"_stubs"^ext_dll]] else []

to account for the possibility that the compiler cannot generate or load dynamic libraries?

In any event, even if I’m wrong about the particulars, it’s clearly true that the ocamlbuild code generated by at least some versions of Oasis does not respect the inability of perfectly valid OCaml environments to support shared libraries, so any advice is welcome.

Best regards,
Paul