Date: Tue, 05 Nov 2002 14:22:41 -0800 From: Tim Kientzle <kientzle@acm.org> To: Andre Albsmeier <andre@albsmeier.net> Cc: current@FreeBSD.ORG Subject: Re: libc size Message-ID: <3DC844B1.4010401@acm.org> References: <3DC17C7F.9020308@acm.org> <20021104150533.A354@schlappy.albsmeier.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DC844B1.4010401>