On my OS X box, brew install unison
gives me version 2.51.2. But the system I need to sync with runs CentOS 6.10 for which there appears to be no existing 2.51.2 binary. I also can't compile from source on that machine as it doesn't have the right tools and I am not root.
To solve this I would like to compile unison from source on my Ubuntu machine on which I am root. But this has to be a static compilation to run on the CentOS machine.
How can I make a static binary of unison?
The Makefile has the line include src/Makefile.OCaml
but I don't know anything about OCaml and am not sure what I would need to change to make a static binary.