Re: Retiring WITHOUT_CXX

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Thu, 02 Dec 2021 18:51:41 UTC
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