[Bug 241257] ld.lld should be built as a static binary

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 16 16:37:29 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241257

--- Comment #5 from Mike Cui <cuicui at gmail.com> ---
I agree that WITH_SHARED_TOOLCHAIN should be the default.

But here one small reason I care about having statically linked pre-built
toolchain binaries. I have a really slow Intel Atom machine, buildworld on this
machine takes 10+ hours, and most of that time is spent building llvm/clang
twice. To save the toolchain bootstrap time, nowadays I download base.txz from
the release I'm upgrading to, extract /usr/bin/{cc,c++,cpp,ld} and
/usr/lib/clang, then do a make buildworld WITHOUT_CROSS_COMPILER=1. It's a
massive timesaver. Because the base toolchain binaries are static I can almost
always run newer version on older systems. When I tried this going to 12.1 RC
it didn't work because ld.lld depended on a libc symbol I didn't have in 11.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list