SYNOPSIS

ocalmklib [options] files

DESCRIPTION

The jocamlmklib command facilitates the construction of libraries containing both Caml code and C code, and usable both in static linking and dynamic linking modes.

OPTIONS

-h, --help

Show summary of options.

-ccliblib

C library passed to jocamlc -a or jocamlopt(1) -a only.

-ccoptopt

C option passed to jocamlc(1) -a or jocamlopt(1) -a only.

-custom

Disable dynamic loading.

-dllpathdir

Add dir to the run-time search path for DLLs.

-Idir

Add dir to the path searched for Caml object files.

-failsafe

Fall back to static linking if DLL construction failed.

-ldoptopt

C option passed to the shared linker only.

-linkall

Build Caml archive with link-all behavior.

-llib

Specify a dependent C library.

-Ldir

Add dir to the path searched for C libraries.

-jocamlccmd

Use cmd in place of jocamlc(1).

-jocamloptcmd

Use cmd in place of jocamlopt(1).

-oname

Generated Caml library is named name.cma or name.cmxa.

-ocname

Generated C library is named dllname.so or libname.a.

-rpathdir

Same as -dllpath dir.

-Rdir

Same as -rpath.

-verbose

Print commands before executing them.

-Wl, -rpath dir

Same as -dllpath dir.

-Wl, -rpath -Wl dir

Same as -dllpath dir.

-Wl, -Rdir

Same as -dllpath dir.

-Fdir

Specify a framework directory (MacOSX).

-frameworkname

Use framework name (MacOSX).

RELATED TO jocamlmklib…

AUTHOR

This manual page was written by Samuel Mimram <[email protected]>, for the Debian project (but may be used by others).