mold is a high-performance drop-in replacement for existing Unix
linkers, designed to speed up builds. In our August 2026 benchmarks,
it links 4.9x faster than LLVM lld and 1.9x faster than wild at the
median.
mold is written by the original developer of LLVM lld, the linker that
Android, Chrome, FreeBSD, PlayStation, Nintendo Switch, and other
production systems are built with. mold started as an effort to build
an even faster linker from scratch, free of the architectural limits
its author had run into while optimizing lld. It has been in
production use since 2021, and today it is the default linker of many
large open-source projects and is used internally by many companies.
devel/mold: Update to 3.0.0
Port changes:
- switch to USES=cargo since mold has been rewritten in Rust
Other irrelevant USES and CMAKE_* have also been dropped
- enable on 32-bit architectures (armv7 and i386)
Linking libatomic from gcc solves undefined symbol: __atomic_load
error
- remove dependency on oneTBB and GNU grep
- remove options since they are not provided by upstream anymore
- remove pre-test target
The testing infrastructure is cleaner now so it is not necessary
anymore
- update pkg-descr
Upstream changes: https://github.com/rui314/mold/releases/tag/v3.0.0
PR: 300096
Reported by: Josh Megnauth <jo.sh@tutanota.com>
Co-authored-by: Hiroki Tagato <tagattie@FreeBSD.org>
devel/mold: Remove the patch which was missed
In the last commit to this port, I missed removing the patch which
was failing to apply, there by causing the build to be broken.
Sorry about this.
Reported by: pkg-fallout
devel/mold: Update to 2.4.0
- Remove the BROKEN
- Import the fix from upstream
- Add ASAN option
- Add LIB_DEPENDS on zstd
Differential Revision: <https://reviews.freebsd.org/D43718>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/mold: New port: A Modern Linker
mold is a faster drop-in replacement for existing Unix linkers. It
is several times faster than LLVM lld linker, the second-fastest
open-source linker which I originally created a few years ago.
mold is created for increasing developer productivity by reducing
build time especially in rapid debug-edit-rebuild cycles.
WWW: https://github.com/rui314/mold