llvm-libtool-darwin - LLVM tool for creating libraries for DarwinΒΆ

SYNOPSISΒΆ

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

DESCRIPTIONΒΆ

llvm-libtool-darwin is a tool for creating static and dynamic libraries for Darwin.

For most scenarios, it works as a drop-in replacement for cctools’ libtool.

OPTIONSΒΆ

llvm-libtool-darwin supports the following options:

-arch_only <architecture>ΒΆ

Build a static library only for the specified <architecture> and ignore all other architectures in the files.

-DΒΆ

Use zero for timestamps and UIDs/GIDs. This is set by default.

-filelist <listfile[,dirname]>ΒΆ

Read input file names from <listfile>. File names are specified in <listfile> one per line, separated only by newlines. Whitespace on a line is assumed to be part of the filename. If the directory name, dirname, is also specified then it is prepended to each file name in the <listfile>.

-h, -helpΒΆ

Show help and usage for this command.

-l <x>ΒΆ

Searches for the library libx.a in the library search path. 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 is added to the list of input files. Otherwise, an error is raised.

-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. The default search path includes directories /lib, /usr/lib and /usr/local/lib.

-no_warning_for_no_symbolsΒΆ

Do not warn about files that have no symbols.

-warnings_as_errorsΒΆ

Produce a non-zero exit status if any warnings are emitted.

-o <filename>ΒΆ

Specify the output file name. Must be specified exactly once.

-staticΒΆ

Produces a static library from the input files.

-UΒΆ

Use actual timestamps and UIDs/GIDs.

-VΒΆ

Display the version of this program and perform any operation specified.

-versionΒΆ

Display the version of this program and exit immediately.

EXIT STATUSΒΆ

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

BUGSΒΆ

To report bugs, please visit <https://github.com/llvm/llvm-project/issues/>.

SEE ALSOΒΆ

llvm-ar(1)