LLVM-LIBTOOL-DARWIN(1)

πŸ“¦
version 16.0.6 Β· 3 versions
, in ubuntu noble

πŸ’– llvm-libtool-darwin β€” the manual, but make it make sense πŸ’–

okay bestie, so this is the page for llvm-libtool-darwin, living in section 1 of the LLVM manual set. It's giving "I make libraries for Darwin" and honestly? It eats. 🌸


✨ NAME ✨

llvm-libtool-darwin β€” the LLVM tool for creating libraries for Darwin πŸ“


πŸ¦‹ SYNOPSIS πŸ¦‹

llvm-libtool-darwin [options] <input files>

πŸ’… DESCRIPTION πŸ’…

So like, llvm-libtool-darwin is a tool for creating static and dynamic libraries for Darwin. That's the whole vibe. ✨

And for most scenarios, it works as a drop-in replacement for cctools' libtool. No cap β€” you can just swap it in and go. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

llvm-libtool-darwin supports the following options, and yes, we're going through all of them, no skipping:

  • -arch_only <architecture> β€” builds a static library only for the specified <architecture> and just... ignores every other architecture in the files. Iconic. Selective. πŸ’…
  • -color β€” uses colors in output. a little sparkle for your terminal 🌈
  • -D β€” use zero for timestamps and UIDs/GIDs. This one is set by default, so it's already doing the most without you asking. 🫢
  • -filelist <listfile[,dirname]> β€” reads input file names from <listfile>. File names go in <listfile> one per line, separated only by newlines. Whitespace on a line is assumed to be part of the filename (so don't be cute with your spacing, it counts). If the directory name, dirname, is also specified, then it gets prepended to each file name in the <listfile>. πŸ’œ
  • -h, -help β€” show help and usage for this command. classic.
  • -help-list β€” show help and usage for this command without grouping the options into categories. just raw, unfiltered list energy. πŸ’€
  • -l <x> β€” searches for the library libx.a in the library search path. But wait, there's lore: if the string <x> ends with .o, then the library x is searched for without prepending lib or appending .a. If the library is found, it's added to the list of input files. Otherwise, an error is raised. periodt. πŸ”₯
  • -L <dir> β€” adds <dir> to the list of directories in which to search for libraries. The directories are searched in the order in which they are specified with -L and before the default search path. And the default search path includes the directories /lib, /usr/lib and /usr/local/lib. order matters bestie, don't forget it. 🧚
  • -no_warning_for_no_symbols β€” do not warn about files that have no symbols. silence is golden, etc. 🀫
  • -warnings_as_errors β€” produce a non-zero exit status if any warnings are emitted. no chill, warnings are crimes now. 😭
  • -o <filename> β€” specify the output file name. Must be specified exactly once. not twice. exactly once. I'm serious. ⭐
  • -static β€” produces a static library from the input files. πŸ’–
  • -U β€” use actual timestamps and UIDs/GIDs. the opposite of -D, if you will. πŸ™ˆ
  • -V β€” display the version of this program and perform any operation specified. yes, both. it's an overachiever. 🌸
  • -version β€” display the version of this program and exit immediately. no operations, we're leaving. bye. πŸ‘‹

πŸ”₯ EXIT STATUS πŸ”₯

llvm-libtool-darwin exits with a non-zero exit code if there is an error. Otherwise, it exits with code 0. simple as that. 🌈


πŸ’€ BUGS πŸ’€

To report bugs, please visit <https://github.com/llvm/llvm-project/issues/>. go tell them, they wanna know. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


🌟 AUTHOR 🌟

Maintained by the LLVM Team (https://llvm.org/). they're doing great, honestly. πŸ’œ


2003-2024, LLVM Project


okay that's the whole page bestie, you're officially educated πŸ’…βœ¨

signing off from LLVM release 15, dated 2024-04-14 β€” mwah, go build something iconic πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from