From owner-freebsd-current Tue Nov 5 14:23: 6 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 8A27A37B401 for ; Tue, 5 Nov 2002 14:23:05 -0800 (PST) Received: from clover.kientzle.com (user-112uh9a.biz.mindspring.com [66.47.69.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46E8A43E6E for ; Tue, 5 Nov 2002 14:23:01 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org (c43 [66.47.69.43]) by clover.kientzle.com (8.11.3/8.11.3) with ESMTP id gA5MMgE30545; Tue, 5 Nov 2002 14:22:42 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3DC844B1.4010401@acm.org> Date: Tue, 05 Nov 2002 14:22:41 -0800 From: Tim Kientzle Reply-To: kientzle@acm.org User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andre Albsmeier Cc: current@FreeBSD.ORG Subject: Re: libc size References: <3DC17C7F.9020308@acm.org> <20021104150533.A354@schlappy.albsmeier.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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 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 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