Command-line tool
mold
brew/mold
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Modern Linker
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install mold
macOS
brew install mold
Linux
brew install mold
Run a build command such as `make`, `ninja`, or `cargo`, with `mold` used in place of `ld`
mold --run command arguments
Link object files into an executable
mold path/to/file1.o path/to/file2.o ... -o path/to/output_executable
Link object files into a shared library
mold --shared path/to/file1.o path/to/file2.o ... -o path/to/library.so
Related command-line tools
- bpf-linker
BPF static linker - ldproxy
A linker proxy tool - wild
Very fast linker for Linux - pkgconf
Package compiler and linker metadata toolkit - cargo-zigbuild
Compile Cargo project with zig as linker - lld
LLVM Project Linker - wasm-component-ld
Linker for creating WebAssembly components - ilmerge
A static linker for .NET assemblies developed by Microsoft .NET team.
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents