man-pages/man1/ocamlmklib.1.html
2021-03-31 01:06:50 +01:00

217 lines
3.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of OCAMLMKLIB</TITLE>
</HEAD><BODY>
<H1>OCAMLMKLIB</H1>
Section: User Commands (1)<BR>Updated: August 19, 2004<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
ocamlmklib - generate libraries with mixed C / Caml code.
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>ocalmklib</B>
[<I>options</I>]<I> files</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B>ocamlmklib</B>
command facilitates the construction of libraries containing both Caml code and C code, and usable both in static linking and dynamic linking modes.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-h, --help</B>
<DD>
Show summary of options.
<DT id="2"><B>-cclib&nbsp;</B><I>lib</I>
<DD>
C library passed to ocamlc
<B>-a</B>
or
<B><A HREF="/cgi-bin/man/man2html?1+ocamlopt">ocamlopt</A></B>(1)
<B>-a</B>
only.
<DT id="3"><B>-ccopt&nbsp;</B><I>opt</I>
<DD>
C option passed to
<B><A HREF="/cgi-bin/man/man2html?1+ocamlc">ocamlc</A></B>(1)
<B>-a</B>
or
<B><A HREF="/cgi-bin/man/man2html?1+ocamlopt">ocamlopt</A></B>(1)
<B>-a</B>
only.
<DT id="4"><B>-custom</B>
<DD>
Disable dynamic loading.
<DT id="5"><B>-dllpath&nbsp;</B><I>dir</I>
<DD>
Add
<I>dir</I>
to the run-time search path for DLLs.
<DT id="6"><B>-I&nbsp;</B><I>dir</I>
<DD>
Add
<I>dir</I>
to the path searched for Caml object files.
<DT id="7"><B>-failsafe</B>
<DD>
Fall back to static linking if DLL construction failed.
<DT id="8"><B>-ldopt&nbsp;opt</B>
<DD>
C option passed to the shared linker only.
<DT id="9"><B>-linkall</B>
<DD>
Build Caml archive with link-all behavior.
<DT id="10"><B>-l</B><I>lib</I>
<DD>
Specify a dependent C library.
<DT id="11"><B>-L</B><I>dir</I>
<DD>
Add
<I>dir</I>
to the path searched for C libraries.
<DT id="12"><B>-ocamlc&nbsp;</B><I>cmd</I>
<DD>
Use
<I>cmd</I>
in place of
<B><A HREF="/cgi-bin/man/man2html?1+ocamlc">ocamlc</A></B>(1).
<DT id="13"><B>-ocamlopt&nbsp;</B><I>cmd</I>
<DD>
Use
<I>cmd</I>
in place of
<B><A HREF="/cgi-bin/man/man2html?1+ocamlopt">ocamlopt</A></B>(1).
<DT id="14"><B>-o&nbsp;</B><I>name</I>
<DD>
Generated Caml library is named
<I>name</I>.cma
or
<I>name</I>.cmxa.
<DT id="15"><B>-oc&nbsp;</B><I>name</I>
<DD>
Generated C library is named
dll<I>name</I>.so
or
lib<I>name</I>.a.
<DT id="16"><B>-rpath&nbsp;</B><I>dir</I>
<DD>
Same as
<B>-dllpath</B>
<I>dir</I>.
<DT id="17"><B>-R</B><I>dir</I>
<DD>
Same as
<B>-rpath</B>.
<DT id="18"><B>-verbose</B>
<DD>
Print commands before executing them.
<DT id="19"><B>-Wl</B>, <B>-rpath </B><I>dir<DD>
Same as
</I><B>-dllpath</B>
<I>dir</I>.
<DT id="20"><B>-Wl</B>, <B>-rpath&nbsp;-Wl </B><I>dir<DD>
Same as
</I><B>-dllpath</B>
<I>dir</I>.
<DT id="21"><B>-Wl</B>, <B>-R</B><I>dir<DD>
Same as
</I><B>-dllpath</B>
<I>dir</I>.
<DT id="22"><B>-F</B><I>dir</I>
<DD>
Specify a framework directory (MacOSX).
<DT id="23"><B>-framework&nbsp;</B><I>name</I>
<DD>
Use framework
<I>name</I>
(MacOSX).
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+ocamlc">ocamlc</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+ocamlopt">ocamlopt</A></B>(1).
<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>
This manual page was written by Samuel Mimram &lt;<A HREF="mailto:samuel.mimram@ens-lyon.org">samuel.mimram@ens-lyon.org</A>&gt;,
for the Debian project (but may be used by others).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="24"><A HREF="#lbAB">NAME</A><DD>
<DT id="25"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="26"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="27"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="28"><A HREF="#lbAF">SEE ALSO</A><DD>
<DT id="29"><A HREF="#lbAG">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:20 GMT, March 31, 2021
</BODY>
</HTML>