This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
J. Wied 2025-01-18 Static OCaml Binaries When compiling OCaml files with -ccopt -static you might get the following warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking This can be fixed by the following steps: install musl ( musl-bootstrap on VoidLinux) create a static switch: opam switch create 5.3.0+static…
2025-01-18
Static OCaml Binaries
When compiling OCaml files with -ccopt -static
you might get the following warning:
Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
This can be fixed by the following steps:
- install musl (“musl-bootstrap” on VoidLinux)
- create a static switch:
opam switch create 5.3.0+static ocaml-variants.5.3.0+options ocaml-option-static
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.