From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-048.btinternet.com (mailomta14-re.btinternet.com [213.120.69.107]) by sourceware.org (Postfix) with ESMTPS id 6E5223857702 for ; Mon, 16 Oct 2023 15:28:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E5223857702 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6E5223857702 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=213.120.69.107 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 Received: from re-prd-rgout-003.btmx-prd.synchronoss.net ([10.2.54.6]) by re-prd-fep-048.btinternet.com with ESMTP id <20231016152838.JXDU17945.re-prd-fep-048.btinternet.com@re-prd-rgout-003.btmx-prd.synchronoss.net>; Mon, 16 Oct 2023 16:28:38 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped 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.turney@dronecode.org.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 Received: from [192.168.1.106] (81.153.98.250) by re-prd-rgout-003.btmx-prd.synchronoss.net (5.8.814.02) (authenticated as jonturney@btinternet.com) id 64D171FB06FA6EE2; Mon, 16 Oct 2023 16:28:38 +0100 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: From: Jon Turney In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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...