Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2021 10:51:41 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        John Baldwin <jhb@freebsd.org>
Cc:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, Ed Maste <emaste@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Retiring WITHOUT_CXX
Message-ID:  <20211202185141.GA8371@troutmask.apl.washington.edu>
In-Reply-To: <ab58cfdd-61f9-abfb-6848-a33c7a4f1069@FreeBSD.org>
References:  <CAPyFy2DJcDFbSoD8awU03jPBY1YVytf%2Bxk4qpv3pW_GLkOsfWA@mail.gmail.com> <202111260909.1AQ99LY2023877@gndrsh.dnsmgr.net> <CAPyFy2Bs76J=UVotL6McqdHVNwhtYmfQq7U2xpXVKiQTpa78Lw@mail.gmail.com> <alpine.BSF.2.00.2111261838320.68830@ai.fobar.qr> <ab58cfdd-61f9-abfb-6848-a33c7a4f1069@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, Dec 02, 2021 at 09:02:17AM -0800, John Baldwin wrote:
> 
> Also, have you looked at what WITHOUT_CXX actually removes?  c++ is just
> a hard link to clang.  That's the big space eater, not libc++.so.1 or
> libcxxrt.so.1.  For reference, on my 13.x desktop, libc.so.7 is about 3
> times the size of libc++.so.1:
> 
> -r--r--r--  1 root  wheel  1986208 Aug 19 15:28 /lib/libc.so.7
> -r--r--r--  1 root  wheel   112200 Aug 19 15:29 /lib/libcxxrt.so.1
> -r--r--r--  1 root  wheel   846200 Aug 19 15:29 /usr/lib/libc++.so.1
> 

How well do libc++.so and libcxxrt.so work if you remove libc.so?
Yes, removing libc++.so and libcxxrt.so only remove 95 kBi, but
your size comparison to libc is misleading.

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20211202185141.GA8371>