Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to best build a smalle libcurses for tiny crunched installers?

On Thu, Jul 25, 2019 at 21:38:16 +0200, Martin Husemann wrote:

> I wonder if we could build a hack version of libcurses with
> DISABLE_WCHAR, or is it better to just include the relevant files
> from libcurses in libhack instead?

I did some work to excise the enhanced curses stuff from the
!HAVE_WCHAR build last November but got distracted.

I have just fixed the DISABLE_WCHAR build (I did all the preparatory
work on attributes.c and then never got around to add the ifdefs,

On amd64 I get:

   text    data     bss     dec     hex filename
 158202    7112    8200  173514   2a5ca # normal
 109868    4546    2080  116494   1c70e # DISABLE_WCHAR

or, probably more relevant for sysinst, for the .a files:

   text    data     bss     dec     hex filename
 111275    4126    2405  117806   1cc2e (TOTALS) # normal
  76231    2078    1379   79688   13748 (TOTALS) # DISABLE_WCHAR

So about 36K.  Actual savings will be less since sysinst likely
doesn't pull in all of it.


Home | Main Index | Thread Index | Old Index