From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs and the static flag in the windows build Date: Sat, 07 Jan 2023 08:49:54 +0200 Message-ID: <83mt6uu9d9.fsf@gnu.org> References: <1330301653.618908.1673047872941@mail1.libero.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36379"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 07 07:50:38 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pE32K-0009I2-TT for ged-emacs-devel@m.gmane-mx.org; Sat, 07 Jan 2023 07:50:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pE31N-0006wz-KC; Sat, 07 Jan 2023 01:49:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE31L-0006wn-Rh for emacs-devel@gnu.org; Sat, 07 Jan 2023 01:49:35 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE31K-0002Qo-Tz; Sat, 07 Jan 2023 01:49:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qiKzWRvhsuzwv3RDZw7/mDoizDgk+O21EqusjeMWpG4=; b=jOktSizqkBjr Y4s6Zfm/SN/WlO6iXVXcBXANl5hQXulpfNOhvRP2FtZ7KX62eiQp+J4mKZc6fRG519N8P506v0nCK nOBvYa9/lSoWCrmzIEEzJ1AE8r9VEuWxqvBSvEYKKWGMcy9jOAnjPYn1mzUoEhMfGjlnGjYvb6IcO 1+wsnrUMjryG1C7zRG0Zz4AlKknoctkgLHALUo5A0QwgO6ZtraMV4yrWw9HjBfjvzGLRFyHLDirEG 6q3pjfR92b6gTiLGFLdaDpqQiumkaYG7Yi3vq8y9r7xdNrwk4CS33sd18OI5pXGvevIoswOzA3luM 0o6t8Le55n6qcE3ZXjhHMw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE31K-0001T3-95; Sat, 07 Jan 2023 01:49:34 -0500 In-Reply-To: <1330301653.618908.1673047872941@mail1.libero.it> (message from Angelo Graziosi on Sat, 7 Jan 2023 00:31:12 +0100 (CET)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302266 Archived-At: > Date: Sat, 7 Jan 2023 00:31:12 +0100 (CET) > From: Angelo Graziosi > > Maybe you remember that this script: https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/nt/dist-build/build-zips.sh use the '-static' in the build. > > Now, a recent upgrade on MSYS2 has broken this. Maybe someone of you could be interested to this discussion with MSYS2 people: > > https://github.com/msys2/MINGW-packages/issues/14799#issue-1514148019 If the static library for GMP (or any other library you configure Emacs to link against) is not available, using -static is bound to fail. The script you mention is for preparing the Emacs binaries that we offer on the GNU FTP site, it is not the officially recommended way of building Emacs for your own use. AFAIR, we use -static to avoid the dependency on pthreads or something. Maybe that problem no longer exists? And I'm not sure I understand why MSYS2 no longer provides a static library for GMP, maybe ask them to reconsider?