RSSAmplifier

J. Wied · Jan 18, 2025

Static OCaml Binaries

0
Sign in to vote or save

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:

  1. install musl (“musl-bootstrap” on VoidLinux)
  2. create a static switch: opam switch create 5.3.0+static ocaml-variants.5.3.0+options ocaml-option-static

Read on /static-ocaml-binaries.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.