From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: bignum branch Date: Tue, 14 Aug 2018 17:16:46 +0100 Message-ID: References: <87o9fbbw1t.fsf@tromey.com> <83zhxummef.fsf@gnu.org> <83lg9em1v6.fsf@gnu.org> <86r2j5q67t.fsf@gmail.com> <83r2j4lvyo.fsf@gnu.org> <86va8gj12l.fsf@gmail.com> <83k1owlscr.fsf@gnu.org> <86mutsiy80.fsf@gmail.com> <83eff4lqon.fsf@gnu.org> <86eff4ixcj.fsf@gmail.com> <83a7pslnzz.fsf@gnu.org> <86eff4turj.fsf@gmail.com> <83y3dbju00.fsf@gnu.org> <86ftzjs73w.fsf@gmail.com> <83pnymjomm.fsf@gnu.org> <86va8d3ln1.fsf@gmail.com> <83a7ppj8vd.fsf@gnu.org> <83600dj7qz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534267561 17886 195.159.176.226 (14 Aug 2018 17:26:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2018 17:26:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (windows-nt) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 14 19:25:49 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from [208.118.235.17] (helo=lists.gnu.org) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fpd4m-0003xs-GW for ged-emacs-devel@m.gmane.org; Tue, 14 Aug 2018 19:25:48 +0200 Original-Received: from localhost ([::1]:45205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpd6b-0004TV-9J for ged-emacs-devel@m.gmane.org; Tue, 14 Aug 2018 13:27:41 -0400 Original-Received: from [2001:4830:134:3::10] (port=33441 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpd2a-00084w-DL for emacs-devel@gnu.org; Tue, 14 Aug 2018 13:23:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpd2P-0003NQ-8y for emacs-devel@gnu.org; Tue, 14 Aug 2018 13:23:26 -0400 Original-Received: from [195.159.176.226] (port=56410 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fpd2O-0003LC-U8 for emacs-devel@gnu.org; Tue, 14 Aug 2018 13:23:21 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fpby0-0000tu-4w for emacs-devel@gnu.org; Tue, 14 Aug 2018 18:14:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:nq0ytURJKJx6rLdkAi+CVvjhL4E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:228531 Archived-At: On Tue 14 Aug 2018, Eli Zaretskii wrote: >> From: Andy Moreton >> Date: Tue, 14 Aug 2018 16:11:36 +0100 >> >> It seems the answer is patch the header manually , or avoid -Og builds. > > I think that could be dangerous of the MSYS2 maintainers want GMP to > be linked statically. A better course of action would be to remove or > rename libgmp.dll.a. (I understand the annoyance with the warning > from pacman, but wouldn't it also whine if you modify the header > file?) > >> I have not yet tried an -O2 build to see if that works. > > Even if it does, I think one cannot rely on that. Another approach is to force static linking. I tried setting GMP_LIB on the configure command line, but that did not seem to propagate to the resulting Makefile. However, hacking /src/Makefile to have this works: GMP_LIB = -Wl,-Bstatic -lgmp -Wl,-Bdynamic That resulted in a binary with statically linked GMP, and where evaluating "(logcount #xfffffffffffffffffffffffffffff)" does not crash. AndyM