* [Caml-list] Oasis Bug?
@ 2016-03-28 13:39 Paul Snively
0 siblings, 0 replies; only message in thread
From: Paul Snively @ 2016-03-28 13:39 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 890 bytes --]
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 <https://github.com/ocaml/oasis/blob/0.4.5/src/oasis/OASISLibrary.ml#L203> 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
[-- Attachment #2: Type: text/html, Size: 1431 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-03-28 13:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-28 13:39 [Caml-list] Oasis Bug? Paul Snively
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox