Quote:
Originally Posted by ghostwheel
Do you know if it is possible to compile "statically" with ocamlc, so that everything needed is included in the binary?
|
Yep: either
ocamlc -custom -ccopt -static (assuming that the C compiller / linker understands
-static) to create a custom bytecode interpreter including all the libs or
ocamlopt -ccopt -static for native binaries that include everything. The latter is usually the way to go.
Just edit the definitions of
OCAMLC and
OCAMLOPT in the Makefile and recompile from scratch.
Is there a danger that commercial libraries will be linked that may not be redistributed?