Date: Sun, 25 Dec 2016 19:36:15 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Nikolai Lifanov <lifanov@FreeBSD.org> Cc: freebsd-toolchain@freebsd.org Subject: Re: status of WITH_SHARED_TOOLCHAIN Message-ID: <C7D49BFD-2C59-4E3F-815A-9B700097A3D7@FreeBSD.org> In-Reply-To: <73e81366-b932-053e-aebf-f8eaebd8ab5a@FreeBSD.org> References: <73e81366-b932-053e-aebf-f8eaebd8ab5a@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_1FBDFFF8-E436-4ECE-B5EB-37FCEB0E86FD Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 25 Dec 2016, at 19:21, Nikolai Lifanov <lifanov@FreeBSD.org> wrote: > > I would like to understand why WITH_SHARED_TOOLCHAIN is not the default. This has been a long standing tradition. Mainly, because you could theoretically rescue yourself out of some bad situations by being able to compile yourself out of it, since statically linked executables won't break if e.g. libc.so or ld-elf.so is screwed up. This is also the reason that /sbin/init and /rescue/rescue are statically linked. Additionally, it could give a minor performance improvement, that is if the slowdown caused by dynamic linking is not offset by reading a larger executable. > My Raspberry Pi 3 is self-hosting with -j4 and doesn't run out of memory > if the toolchain is shared. Is there a downside to this option? I normally always use WITH_SHARED_TOOLCHAIN, and I have yet to encounter any problem with it. -Dimitry --Apple-Mail=_1FBDFFF8-E436-4ECE-B5EB-37FCEB0E86FD Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlhgEaUACgkQsF6jCi4glqNo8QCdEzzB0I95lZhBuB/H8GtpaV3P u2gAnRolVXSlMDLAoZ1MO9b2wHKfOXOX =1KT8 -----END PGP SIGNATURE----- --Apple-Mail=_1FBDFFF8-E436-4ECE-B5EB-37FCEB0E86FD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C7D49BFD-2C59-4E3F-815A-9B700097A3D7>