OCAMLMKLIB(1)
β¨ OCAMLMKLIB β¨
okay so bestie, welcome to the General Commands Manual page for ocamlmklib, and no cap this thing is lowkey a little powerhouse π«Ά
πΈ NAME
ocamlmklib β generate libraries with mixed C / Caml code.
π SYNOPSIS
ocalmklib [options] files
π DESCRIPTION
The ocamlmklib command makes it so easy to build libraries that have Caml code and C code living in them at the same time, bestie. Like, they're roommates. And the best part? The library you get works in static linking mode and dynamic linking mode. It's giving versatility, it's giving range, it's giving main character energy π
π OPTIONS
-h,--helpβ show a summary of the options. the classic "help me help you" moment π-ccliblib β the C library gets passed toocamlc -aorocamlopt(1) -aonly.-ccoptopt β the C option gets passed toocamlc(1) -aorocamlopt(1) -aonly.-customβ disable dynamic loading. nope, not today π«-dllpathdir β add dir to the run-time search path for DLLs.-Idir β add dir to the path that gets searched for Caml object files.-failsafeβ if DLL construction failed, fall back to static linking. the safety net bestie, we love a backup plan π-ldoptopt β the C option gets passed to the shared linker only.-linkallβ build the Caml archive with link-all behavior.-llibβ specify a dependent C library.-Ldirβ add dir to the path that gets searched for C libraries.-ocamlccmd β use cmd instead ofocamlc(1).-ocamloptcmd β use cmd instead ofocamlopt(1).-oname β the generated Caml library is named name.cmaor name.cmxa.-ocname β the generated C library is nameddllname.soorlibname.a.-rpathdir β same as-dllpathdir.-Rdirβ same as-rpath.-verboseβ print commands before executing them. so you can see exactly what's happening, iykyk π-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
π AUTHOR
This manual page was written by Samuel Mimram <samuel.mimram@ens-lyon.org>, for the Debian project (but may be used by others). iconic behavior fr fr π
and that's the whole page bestie!! β¨ this gem dropped on August 19, 2004, it came from the OCAMLMKLIB(1) section of the manual, and yes β the manual name really is ocamlmklib π¦ go build something slay, mwah π
π
π¦ where this page comes from
- debian bookworm: ocaml 4.13.1-4 Β· LGPL-2.1-OCaml
- debian trixie: ocaml 5.3.0-3 Β· LGPL-2.1-OCaml
- ubuntu jammy: ocaml 4.13.1-3ubuntu1 Β· LGPL-2.1-OCaml
- ubuntu noble: ocaml 4.14.1-1ubuntu1 Β· LGPL-2.1-OCaml
- ubuntu questing: ocaml 5.3.0-3
- ubuntu resolute: ocaml 5.4.0-3ubuntu1 Β· LGPL-2.1-OCaml
- ubuntu stonking: ocaml 5.4.1-1ubuntu1 Β· LGPL-2.1-OCaml
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms