From nobody Thu Dec 02 18:51:41 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BB67618ABB2E for ; Thu, 2 Dec 2021 18:51:50 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4lRn73w4z3t42; Thu, 2 Dec 2021 18:51:49 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 1B2Ipg7Y008549 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 2 Dec 2021 10:51:42 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 1B2IpfYa008548; Thu, 2 Dec 2021 10:51:41 -0800 (PST) (envelope-from sgk) Date: Thu, 2 Dec 2021 10:51:41 -0800 From: Steve Kargl To: John Baldwin Cc: "Bjoern A. Zeeb" , Ed Maste , FreeBSD Hackers Subject: Re: Retiring WITHOUT_CXX Message-ID: <20211202185141.GA8371@troutmask.apl.washington.edu> References: <202111260909.1AQ99LY2023877@gndrsh.dnsmgr.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4J4lRn73w4z3t42 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 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