emacs-devel
[Top][All Lists]
Advanced

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

Re: Bloat in the Emacs Windows package


From: Phillip Lord
Subject: Re: Bloat in the Emacs Windows package
Date: Thu, 18 Apr 2019 17:00:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Óscar Fuentes <address@hidden>
>> Date: Wed, 17 Apr 2019 18:25:50 +0200
>> 
>> > It is simply for me to remove the -g option from the windows build. This
>> > would reduce the overall size of the build, to the values given here:
>> >
>> > http://lists.gnu.org/archive/html/help-gnu-emacs/2019-04/msg00115.html
>> >
>> > I am happy to do this (for Emacs-27 -- I do not want to change during
>> > major release). But I would like feedback from people who either use or
>> > handle bug reports for Emacs on Windows to let me know whether this
>> > would break things.
>> 
>> There is a simple approach to this: `make install' as usual, package as
>> usual (without dependencies) but name that package
>> emacs-debug-blah-blah. Now run `strip` on Emacs binary directory and
>> proceed to do the normal packaging.
>
> There's a "make install-strip" target for that.
>
> Removing -g is not TRT, btw, as it will still leave some minimal
> symbols.


Currently, I build with

"-O2 -static -g3"

I could change this to

-O2 -static -g0

When I did this, a binary that didn't really change size after running
strip (I don't have the exact figures for this, but could test). It
could also change this to

-O3 -static -g0

which would make things slightly faster, but I guess a large executable
(again I haven't tested). Or, I could "make install" to "make
install-strip".

None of these things would cost me anything other than changing one
file. I am happy what ever. Just tell me which one works best.

Phil






reply via email to

[Prev in Thread] Current Thread [Next in Thread]