delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/09/22/07:12:39

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D50133857359
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1695381157;
bh=jKRVeMA71VEtAymmrFnLKYk1m8CLKUiUKQvUA0Zrmk0=;
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=YxHjp/DdPs/mpmByPCNOdqmzBqRThAGnx5OIF7qQkL0u2XTX/bxOwYLy0iBhzsSJV
ePROHQ3R5e5MECG6wULqrKFFq3ZQ0H4msVDe1eRwz9HGPetke4LukQlzRzh4By2yid
1rQsEaqAlZjYQfRpLsIubmexFp2Xg+W34psciY3k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 504853858D28
Message-ID: <f209cefe-0ca0-dd6f-dab8-9cf82fa57f8c@johannesthoma.com>
Date: Fri, 22 Sep 2023 13:12:19 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:102.0)
Gecko/20100101 Thunderbird/102.15.1
Subject: Re: Question on statically linking with cygwin
To: cygwin AT cygwin DOT com
References: <b6d9c9d9-63ae-7238-cd77-6f3de051eb5d AT gmx DOT at>
<CANH4o6NP+ag1HNPPoqkWAZw0KK2Fnc22_4vt1m2QgByhr5Pb0w AT mail DOT gmail DOT com>
In-Reply-To: <CANH4o6NP+ag1HNPPoqkWAZw0KK2Fnc22_4vt1m2QgByhr5Pb0w@mail.gmail.com>
X-Provags-ID: V03:K1:+abX9p4KsbPZbkpshadHGdVVyAhgyyIrMX/2RHKLwj63/+hAxsD
laNm82imi2CZPa30+Cftt1hyvG9iESF8aUVNT9VLUTJMzSDzYd7lz7ttRI9Bn49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8FZW+gdg==
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=ham 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 <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Johannes Thoma via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Johannes Thoma <johannes AT johannesthoma DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 38MBCdGY002745

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
> <cygwin AT cygwin DOT com> 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 ...

> 
>> 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.

> Thanks,
> Martin
> 
Best regards,

- Johannes

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019