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: Windows port binaries Date: Thu, 17 Aug 2023 17:14:06 +0300 Message-ID: <83edk169jl.fsf@gnu.org> References: <4536176.VaOIPsP7d9@nimes> <3861918.kkAUEy7oZ9@nimes> <83ttsz8bhn.fsf@gnu.org> <6855528.vW432DtfF5@nimes> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: corwin@bru.st, Emacs-devel@gnu.org, luangruo@yahoo.com, eggert@cs.ucla.edu To: Bruno Haible Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 17 16:14:39 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 1qWdln-0007vs-CM for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Aug 2023 16:14:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWdlD-0000az-Bj; Thu, 17 Aug 2023 10:14:03 -0400 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 1qWdlA-0000aV-Vp for Emacs-devel@gnu.org; Thu, 17 Aug 2023 10:14:01 -0400 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 1qWdl9-0000Pj-KX; Thu, 17 Aug 2023 10:13:59 -0400 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=8w12mxxf/bAJcpMexPBBSPmc2q/qJubeeIRWB+/ka1o=; b=rl0OCcyvsaUX bWhSolydYSD80xKNI9qgOGd0wu7eisM+IqJ/CDtd/Us4HpJmWy9mRwdnMSc96rSdT4qTeddZgYdqG mX/np5eUaFljFV3DuyDVnJBAA/5lXLBvunonrPj6ujmcGEJFA8+ny9TSsBXvB4I3WVPSXamLJf2Jo 9xBdbqQhkPqU4yk72xb02ci6mUra+w1XDaYRUqSbE5CKwZ4zd22/wbP/yaxU+IvJC0X3NFWoGOeT5 AxPpXy57TbpmC+xfi38cjIP+x52OgaHkJkUOTKINFBcsJoldLQ8Cdq+33eB2zu6zcXAwYumInO7A2 SkJ4Wdt2QeWrprShcQvFdw==; In-Reply-To: <6855528.vW432DtfF5@nimes> (message from Bruno Haible on Thu, 17 Aug 2023 16:01:23 +0200) 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:308866 Archived-At: > From: Bruno Haible > Cc: corwin@bru.st, Emacs-devel@gnu.org, luangruo@yahoo.com, eggert@cs.ucla.edu > Date: Thu, 17 Aug 2023 16:01:23 +0200 > > Eli Zaretskii wrote: > > > they rely on two DLLs which are not contained in the 'bin' directory: > > > - libgmp-10.dll > > > - libwinpthread-1.dll > > > > libwinpthread-1.dll shouldn't be there. ... > > But I'm not sure we can avoid this, when MinGW64 is used. > > The dependency comes from Gnulib. Emacs uses the gnulib module 'nanosleep', > and it picks the nanosleep function from libwinpthread-1.dll. I can reproduce > this directly in Gnulib. > > Since this DLL dependency is an annoyance also for other people who produce > Windows binaries (I'm thinking of gettext and others), I'll change Gnulib > to avoid this dependency. Thanks, but please allow MinGW to use its own implementation if time.h declares it and a test program calling it links without pthreads. At least mingw.org's MinGW does have nanosleep which doesn't need pthreads.