From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.devel Subject: Re: Bloat in the Emacs Windows package Date: Thu, 18 Apr 2019 17:00:55 +0100 Message-ID: <87y3471ex4.fsf@russet.org.uk> References: <87zhood4ca.fsf@russet.org.uk> <87mukosinl.fsf@telefonica.net> <835zrcfuko.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="168107"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 18 18:14:15 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH9fy-000hd4-D7 for ged-emacs-devel@m.gmane.org; Thu, 18 Apr 2019 18:14:14 +0200 Original-Received: from localhost ([127.0.0.1]:43850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hH9fx-0002PI-EB for ged-emacs-devel@m.gmane.org; Thu, 18 Apr 2019 12:14:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hH9cx-0000NY-VT for emacs-devel@gnu.org; Thu, 18 Apr 2019 12:11:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hH9cw-0007yn-Vq for emacs-devel@gnu.org; Thu, 18 Apr 2019 12:11:07 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:45012) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hH9cu-0007UT-GK; Thu, 18 Apr 2019 12:11:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=h6cItjXAd8HzLfIyllrs1O2HwudlAq1qdW/O2PEHSs8=; b=WwUzd8rtjUIY9pbKNJOmIq/b4t P8w3rNqj799f+AJKDfsaQWeJGkYIJwennANnZh9s6Za7eehTrqud29RWq15C3jli6zGS3UW3IkNET ZcXp6R0wTCxQTyuxr3X3hR8nk56DkA3A83GlX4aOdSqLRx+ugl82mUmhxwoEz/fAhsrsjk60ILOe8 YXgA+fDLvCa3g2Cuq0th6cINmvJzRXg1J5T9RXOalFztIl2Atk3vm7XRlgQdqpiOfUiyLQIJXHNQV erL+5zIQvI0jOeYhMMppljNi2/RqpQOSRN8IWTfPK2e5w7YEFG59ioWFjSVkmdmUIg7EIHqDDTySS ara5znUQ==; Original-Received: from cpc142652-benw12-2-0-cust953.16-2.cable.virginm.net ([82.21.43.186]:60348 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hH9cE-0008Pi-Jm; Thu, 18 Apr 2019 17:10:22 +0100 In-Reply-To: <835zrcfuko.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 Apr 2019 19:46:47 +0300") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 78.129.138.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235625 Archived-At: Eli Zaretskii writes: >> From: =C3=93scar Fuentes >> Date: Wed, 17 Apr 2019 18:25:50 +0200 >>=20 >> > It is simply for me to remove the -g option from the windows build. Th= is >> > 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. >>=20 >> 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