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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to