Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2019 16:37:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 241257] ld.lld should be built as a static binary
Message-ID:  <bug-241257-29464-DHva8enQKR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241257-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241257-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241257

--- Comment #5 from Mike Cui <cuicui@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 f=
rom
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=3D1. It's a
massive timesaver. Because the base toolchain binaries are static I can alm=
ost
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241257-29464-DHva8enQKR>