ocamlmklib -version (return code: 0)
ocamlmklib, version 4.04.0
ocamlmklib --help (return code: 0)
Usage: ocamlmklib [options] <.cmo|.cma|.cmx|.cmxa|.ml|.mli|.o|.a|.obj|.lib|.dll|.dylib files>
Options are:
-cclib <lib> C library passed to ocamlc -a or ocamlopt -a only
-ccopt <opt> C option passed to ocamlc -a or ocamlopt -a only
-custom Disable dynamic loading
-g Build with debug information
-dllpath <dir> Add <dir> to the run-time search path for DLLs
-F<dir> Specify a framework directory (MacOSX)
-framework <name> Use framework <name> (MacOSX)
-help Print this help message and exit
--help Same as -help
-h Same as -help
-I <dir> Add <dir> to the path searched for OCaml object files
-failsafe fall back to static linking if DLL construction failed
-ldopt <opt> C option passed to the shared linker only
-linkall Build OCaml archive with link-all behavior
-l<lib> Specify a dependent C library
-L<dir> Add <dir> to the path searched for C libraries
-ocamlc <cmd> Use <cmd> in place of "ocamlc"
-ocamlcflags <opt> Pass <opt> to ocamlc
-ocamlopt <cmd> Use <cmd> in place of "ocamlopt"
-ocamloptflags <opt> Pass <opt> to ocamlopt
-o <name> Generated OCaml library is named <name>.cma or <name>.cmxa
-oc <name> Generated C library is named dll<name>.so or lib<name>.a
-rpath <dir> Same as -dllpath <dir>
-R<dir> Same as -rpath
-verbose Print commands before executing them
-v same as -verbose
-version Print version and exit
-vnum Print version number and exit
-Wl,-rpath,<dir> Same as -dllpath <dir>
-Wl,-rpath -Wl,<dir> Same as -dllpath <dir>
-Wl,-R<dir> Same as -dllpath <dir>