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 πŸ™ˆ
  • -cclib lib β€” the C library gets passed to ocamlc -a or ocamlopt(1) -a only.
  • -ccopt opt β€” the C option gets passed to ocamlc(1) -a or ocamlopt(1) -a only.
  • -custom β€” disable dynamic loading. nope, not today 🚫
  • -dllpath dir β€” add dir to the run-time search path for DLLs.
  • -I dir β€” 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 πŸ’–
  • -ldopt opt β€” 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.
  • -ocamlc cmd β€” use cmd instead of ocamlc(1).
  • -ocamlopt cmd β€” use cmd instead of ocamlopt(1).
  • -o name β€” the generated Caml library is named name.cma or name.cmxa.
  • -oc name β€” the generated C library is named dllname.so or libname.a.
  • -rpath dir β€” same as -dllpath dir.
  • -Rdir β€” same as -rpath.
  • -verbose β€” print commands before executing them. so you can see exactly what's happening, iykyk πŸ‘€
  • -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).
  • -framework name β€” use framework name (MacOSX).

πŸ”₯ SEE ALSO

ocamlc(1), ocamlopt(1).


πŸ‘‘ 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 πŸ’…πŸŽ€