Dune build for multiple linux distribution

If I build an Ocaml Dune project on a Linux distribution, will it work on the others?

For example if I do: “dune build util.exe” on my Ubuntu machine, will it work on Fedora?

Run readelf -Wa util.exe | grep -w NEEDED and compare if the required libraries are available on the target systems which you plan to support.

This is not really specific to OCaml, the same issue occours with every other language.

In general, use the “oldest” target system to produce the binaries. The used ABIs are usually available also on newer systems.