X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47D97385C6E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1697470139; bh=NL9gN2k8bIg4SAZJmNFUw40ACNvBvAp07pwcPJnESYQ=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Gs4uoaw/bCWcZFbtoXxfLnMBfT67Zl8oHm/xXLb8JoEcCasvQ862pIiLlTrBxi6+s 7IAGLo4Y3MofMztPpVJWJG8mqetSNM3dxOUUzisvg4OuW7+sG+ijBDLQrsmkuh0mk9 brp9ZByGLlNn4RzwODvEm//QfRnbYgIc2PNov90M= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E5223857702 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6E5223857702 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697470123; cv=none; b=L2OhGf0qBvdu4Bq0kgbKwNVhO7u3QjfbtQmaBxQ3c03Ngyw6w4LG2ezkanogo1HExSf+6CMzFZmMRa9F7WwYhPDWzNVbAt0bLLA6M5D4UKr0evo3J99uhLiGsi5jDfyXJOD9CLjbIo1MxtfzcnSVPsZ0Ip9HGB1Q+5hZcvOqqmc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697470123; c=relaxed/simple; bh=VehZxjYqQLhCjW2Qa0aId1wkCOSQMaCDTFz6OSctc/A=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=Mw0gpkWEQ6fTCbETOfcIzyAUsB0xfxSmsH9PYkTs54EGj3AJrs6MY0QUKwHdX318Sln4VEdiwbndHGdY/+pss+Q4aoVFwSwP25Ea++BkrVIQniFiQljmuOu4rpnOiy7mOWyLTeklL5JQYdyNuYAnd+L+iEUMEV65jF/loojJeoA= ARC-Authentication-Results: i=1; server2.sourceware.org X-SNCR-Rigid: 64D171FB06FA6EE2 X-Originating-IP: [81.153.98.250] X-OWM-Source-IP: 81.153.98.250 (GB) X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvkedrjedtgdekiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepgeduuefghfetveegudfgheevfedtieethfffudefieelgfejtedtjeekhefgteegnecuffhomhgrihhnpegthihgfihinhdrtghomhdpghhithhhuhgsrdgtohhmnecukfhppeekuddrudehfedrleekrddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdeingdpihhnvghtpeekuddrudehfedrleekrddvhedtpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepfedprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohepjhhohhgrnhhnvghssehjohhhrghnnhgvshhthhhomhgrrdgtohhmpdhrtghpthhtohepmhgrrhhtihhnrdhlrdifvghgvgesghhmrghilhdrtghomhdprhgvvhfkrfephhhoshhtkeduqdduheefqdelkedqvdehtddrrhgr nhhgvgekuddqudehfedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiue X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Message-ID: <71e853b9-1b6c-4796-9488-b58f69c7de1e@dronecode.org.uk> Date: Mon, 16 Oct 2023 16:28:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Question on statically linking with cygwin Content-Language: en-GB To: Johannes Thoma , Martin Wege , The Cygwin Mailing List References: In-Reply-To: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Jon Turney via Cygwin Reply-To: Jon Turney Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 39GFSx2a026386 On 22/09/2023 12:12, Johannes Thoma via Cygwin wrote: > Hi Martin, > > Thanks for your answer, comments inline: > > Am 22.09.23 um 07:54 schrieb Martin Wege via Cygwin: >> On Tue, Sep 19, 2023 at 5:24 PM Johannes Thoma via Cygwin >> wrote: >>> >>> Hi, >>> >>> As I understood the reason for not being able to statically link >>> the cygwin1.dll in to a binary and distribute that is because of >>> licensing issues. >> >> Do you have any references for that? > I read that in the Cygwin FAQ: > > https://cygwin.com/faq/faq.html#faq.programming.static-linking > > I read through the licensing options and IMHO linking statically > against cygwin (which is GPL) from a program (like WinDRBD) that > is also GPL should be allowed. But I am not a lawyer ... That FAQ probably needs clarifying. The two sentences are probably intended to be taken separately. So, to be clear, there are technical reasons why the cygwin DLL is not also made available as a static library. >>> Are there any technical issues that would make >>> it impossible to link with cygwin statically? >>> >>> The reason I am asking is I am working on a GPL project >>> (WinDRBD: https://github.com/LINBIT/windrbd) and am currently >>> delivering the cygwin1.dll along with the binary. It would be >>> desireable to have the cygwin1.dll statically linked (for example >>> to avoid version clashes) instead. Is that technically possible? >>> If necessary I am ready to compile cygwin (at least the needed >>> files) on my own. >> >> Interesting. >> But how (from a developers perspective) do you link cygwin1.dll >> statically into a binary? >> > I would build my own cygwin1.lib or cygwin1.a and statically link > against it. If you do work out how to do this, patches would be welcome... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple