View Single Post
Old 02-06-2009, 03:53 AM   #38
thomega
Connoisseur
thomega began at the beginning.
 
Posts: 56
Karma: 22
Join Date: Oct 2008
Location: Würzburg, Germany
Device: iRex DR1000S
Quote:
Originally Posted by ghostwheel View Post
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?
thomega is offline   Reply With Quote