logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ocamlmklib - generate libraries with mixed C / Caml code.

Author

       This manual page was written by Samuel Mimram <samuel.mimram@ens-lyon.org>, for the Debian  project  (but
       may be used by others).

                                                 August 19, 2004                                   OCAMLMKLIB(1)

Description

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

Name

       ocamlmklib - generate libraries with mixed C / Caml code.

Options

-h,--help
              Show summary of options.

       -ccliblib
              C library passed to ocamlc -a or ocamlopt(1) -a only.

       -ccoptopt
              C option passed to ocamlc(1) -a or ocamlopt(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.

       -ocamlccmd
              Use cmd in place of ocamlc(1).

       -ocamloptcmd
              Use cmd in place of ocamlopt(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 -dllpathdir.

       -Rdir  Same as -rpath.

       -verbose
              Print commands before executing them.

       -Wl, -rpathdir
              Same as -dllpathdir.

       -Wl, -rpath-Wldir
              Same as -dllpathdir.

       -Wl, -Rdir
              Same as -dllpathdir.

       -Fdir  Specify a framework directory (MacOSX).

       -frameworkname
              Use framework name (MacOSX).

See Also

ocamlc(1), ocamlopt(1).

Synopsis

ocalmklib [options] files

See Also