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:
opam switch create 5.3.0+static ocaml-variants.5.3.0+options ocaml-option-static2025-01-18