From owner-freebsd-current Thu Nov 7 3:31:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CECED37B401 for ; Thu, 7 Nov 2002 03:31:10 -0800 (PST) Received: from outside.albsmeier.net (outside.albsmeier.net [212.125.105.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC51A43E3B for ; Thu, 7 Nov 2002 03:31:09 -0800 (PST) (envelope-from andre@albsmeier.net) Received: from outside.albsmeier.net (uucp@localhost [127.0.0.1]) by outside.albsmeier.net (8.12.6/8.12.6) with ESMTP id gA7BV6xn022134; Thu, 7 Nov 2002 12:31:07 +0100 (CET) (envelope-from andre@albsmeier.net) Received: from schlappy.albsmeier.net (uucp@localhost) by outside.albsmeier.net (8.12.6/8.12.6/Submit) with ESMTP id gA7BUDZ0022129; Thu, 7 Nov 2002 12:30:54 +0100 (CET) (envelope-from andre@albsmeier.net) Received: from schlappy.albsmeier.net (schlappy.albsmeier.net [127.0.0.1]) by schlappy.albsmeier.net (8.12.6/8.12.6) with ESMTP id gA6D658E000582; Wed, 6 Nov 2002 14:06:05 +0100 (CET) (envelope-from andre@schlappy.albsmeier.net) Received: (from andre@localhost) by schlappy.albsmeier.net (8.12.6/8.12.6/Submit) id gA6D65s3000581; Wed, 6 Nov 2002 14:06:05 +0100 (CET) (envelope-from andre) Date: Wed, 6 Nov 2002 14:06:05 +0100 From: Andre Albsmeier To: Tim Kientzle Cc: Andre Albsmeier , current@FreeBSD.ORG Subject: Re: libc size Message-ID: <20021106140605.D480@schlappy.albsmeier.net> References: <3DC17C7F.9020308@acm.org> <20021104150533.A354@schlappy.albsmeier.net> <3DC844B1.4010401@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3DC844B1.4010401@acm.org>; from kientzle@acm.org on Tue, Nov 05, 2002 at 02:22:41PM -0800 X-Echelon: USCODE, Uzi, S/Key, Uzi, AA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 05-Nov-2002 at 14:22:41 -0800, Tim Kientzle wrote: > Andre Albsmeier wrote: > > > I would like to compile the whole base system (maybe even > > the ports) without the whole setlocale stuff. Do you have > > any ideas of how to do this easily? > > > Replace setlocale() in lib/libc/locale with a stub. That > should do it. > > Of course, this doesn't really save you that much. > Most binaries are dynamically linked, so this > saves nothing on disk space for those executables. > It's a couple of K for those statically-linked > executables that use it, but there aren't that Yeah, you are right. I had a look at it and its size nearly doesn't count. > many of them. If you're worried about disk space > for the locale data itself, you can > simply delete any locales you don't use from > /usr/share/locale These are 548 files consuming 606 kB. Regarding the space it is not so much as well... BTW, I deleted the stuff in /usr/X11R6/lib/X11/locale/* one day and my X didn't start anymore. But for the stuff in the base system it might work... Thanks, -Andre > > It comes up in the context of 'cat' only > because it more than doubles the size of > an otherwise very small executable for a > single option that is not standard and > (probably) not ever used. This is a pretty > unusual situation. > > Tim Kientzle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message