From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id 1AA973858C53 for ; Fri, 22 Sep 2023 05:54:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1AA973858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3addaf54b5dso1148397b6e.1 for ; Thu, 21 Sep 2023 22:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695362063; x=1695966863; darn=cygwin.com; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OFxeoK/EfX6vKpc1vvu6eX9tqv7CXLu+YSiX9TCIVUA=; b=ctltS9w8MF7IMZMeL21zFq+aZpS0L+EM+xFnRVseFF7rpGoJCtPGImV3smzrFyBCfe RJf8uuoOB7icOKJ2OsVELH0/375ZzS0n7WFTsufYso4dJSxEo4nO+pfZz5ZWH7xnXZRM 7SwWtJ0WRJI4skodd1OYubQIn0fcNYnJk4jGZyTPiISsovhjS0O43yiKgoCF+CCNze91 aarNpKAS8yxxUUyDCcohaGyoCjf8FfBynBjB1mtIPA+Avl1MPYQ+JDkco24f9TLAE4Oa +5sytwgK50bjnY7YLFn6UPZoxEH5v9wlPXN01ASOipwaelKPgV7pSteYU+xQre6eQwrW iwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695362063; x=1695966863; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OFxeoK/EfX6vKpc1vvu6eX9tqv7CXLu+YSiX9TCIVUA=; b=K4xzdIo0OJPT5WBwm+7YQVt1hVZgFnZydjt/9P5JjgkNpNeLL2Di8DZmrSUE1rwZxE m5oTEivw9XlkO4vgbI+AgxCpd4l/yCdShsYphsUGQT2fNuvCyxDTKlMhl1VF8i2xzF6b NNHosEwE4NtHMy0TcsZEA146RcwZepsYXwTHfGa8b6JsRYL5UQIgZ6aHiGrE4boDTIZe 8/I7UabbUfJ6ttgyEj1gSay31KPS1gXAysjVIk4gOhhhc6sDDdl0vUe4drD5W23L9oa6 hPPl2lVJaqIoNucB48AduMPF1FSq3EzW6FPTaSKWN8HjVMGXMaKQzUsVjXo9T2Lh4MFZ E4OQ== X-Gm-Message-State: AOJu0YySxjTwIiOmyx4kA6t3thd8MVtSJp720kLXSz681ighCj5h49cN 3opfIpqbS/py91qW1Y1De/KRj/9r8gwxPQt9BR0tXCuw X-Google-Smtp-Source: AGHT+IF2K/2rzg6NE5BV+iLUR4W/ddxuPQGISAxq/XBMLwbvtbYmDvZvqUuXnxFzvwNk9M9cSWj0t63Q2YivqUB8wEc= X-Received: by 2002:a05:6870:4411:b0:1c0:c42f:6db2 with SMTP id u17-20020a056870441100b001c0c42f6db2mr8113457oah.37.1695362063232; Thu, 21 Sep 2023 22:54:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Martin Wege Date: Fri, 22 Sep 2023 07:54:12 +0200 Message-ID: Subject: Re: Question on statically linking with cygwin To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: On Tue, Sep 19, 2023 at 5:24=E2=80=AFPM 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? > 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? Thanks, Martin