From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 64-bit build on Windows Date: Sat, 21 Jan 2017 20:25:05 +0200 Message-ID: <83h94s5kzi.fsf@gnu.org> References: <874m0tc0gn.fsf@russet.org.uk> <87efzxn6or.fsf@wanadoo.es> <83y3y5681f.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1485023166 6982 195.159.176.226 (21 Jan 2017 18:26:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2017 18:26:06 +0000 (UTC) Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Fabrice Popineau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 21 19:26:02 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cV0ML-0000he-L6 for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2017 19:25:53 +0100 Original-Received: from localhost ([::1]:32889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV0MQ-0003ty-MW for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2017 13:25:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV0Lo-0003sw-08 for emacs-devel@gnu.org; Sat, 21 Jan 2017 13:25:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cV0Lj-0004TA-SO for emacs-devel@gnu.org; Sat, 21 Jan 2017 13:25:20 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV0Lj-0004T3-P4; Sat, 21 Jan 2017 13:25:15 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3292 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cV0Li-0001Hm-C3; Sat, 21 Jan 2017 13:25:15 -0500 In-reply-to: (message from Fabrice Popineau on Fri, 20 Jan 2017 20:51:47 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:211472 Archived-At: > From: Fabrice Popineau > Date: Fri, 20 Jan 2017 20:51:47 +0100 > Cc: Óscar Fuentes , > Emacs developers > > AFAIR, the problem with Imagemagick support on Windows is that it can > only be supported when linked in statically, > > I don't think so. The patch I posted recently shows that emacs can be compiled > with ImageMagick exactly the same way it is compiled with other dlls. Can be built before the patch or after the patch? And after it is built, will it run on a system where ImageMagick is not installed at all? You see, w32-win.el doesn't have ImageMagick-related DLL names in its value of dynamic-library-alist, and without that Emacs won't know which libraries to look for when ImageMagick support is requested. That alist is how officially supported optional libraries should be introduced into the Windows build of Emacs -- we want a binary that was built with these libraries to be able to run on systems without the DLLs being available. By contrast, just linking with the -lLIB link-time switch produces a binary that will refuse to load if the DLL is not found.