delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/07/12:25:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 7 Jun 2004 12:25:14 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Visual Studio linking
Message-ID: <20040607162514.GB4767@coe.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Mahogany-0 DOT 66 DOT 0-796-20040602-091909 DOT 00 AT bakbone DOT co DOT uk> <001801c4487e$dca77e20$78d96f83 AT robinson DOT cam DOT ac DOT uk> <Mahogany-0 DOT 66 DOT 0-796-20040602-101718 DOT 00 AT bakbone DOT co DOT uk> <Mahogany-0 DOT 66 DOT 0-796-20040602-131524 DOT 00 AT bakbone DOT co DOT uk> <Mahogany-0 DOT 66 DOT 0-796-20040602-144338 DOT 00 AT bakbone DOT co DOT uk> <Mahogany-0 DOT 66 DOT 0-604-20040607-153821 DOT 00 AT bakbone DOT co DOT uk> <20040607145637 DOT GB15068 AT coe DOT casa DOT cgf DOT cx> <Mahogany-0 DOT 66 DOT 0-604-20040607-171325 DOT 00 AT bakbone DOT co DOT uk>
Mime-Version: 1.0
In-Reply-To: <Mahogany-0.66.0-604-20040607-171325.00@bakbone.co.uk>
User-Agent: Mutt/1.4.1i

On Mon, Jun 07, 2004 at 05:13:25PM +0100, Alastair Growcott wrote:
>>A .def file is generated for cygwin when the DLL is built, actually.
>
>I'm not building the Cygwin dll, so I need this step.
>
>>5a) Modify the license of your program to the GNU General Public
>>License, since your binary has now become GPLed, meaning that you must
>>now offer the source code to your sources under the terms of the GPL.
>
>My program is non-distributable.  I am using it to run unit tests
>internally.
>
>I thought that, under the terms of the GPL, if my binary links
>dynamically to the Cygwin DLL, I do NOT have to offer my source code
>up, I only need to ensure that people can use my software against
>future (or past) versions of Cygwin by rebuilding the DLL themselves.
>This includes either distributing the Cygwin DLL source code or
>ditributing a link to somewhere they can obtain it.

>>5) Download crt0.c from the cygwin website and include it in your
>>sources.  Modify it to call my_crt0() instead of cygwin_crt0().

You're including crt0.c in your source code.  That's not linking
dynamically.  You are also using a .def file for your linking rather
than calling LoadLibrary and cousins.

AFAICT, you aren't doing anything differently from what a normal build
of a binary using gcc and would do.

>Or is that the lesser GPL?
>
>Surely the source code will not be GPL'ed if I do not make it or the
>binary publically available!

I suspect that you probably haven't read the GPL FAQ.  This section
is probably pertinent:

http://www.gnu.org/licenses/gpl-faq.html#TOCGPLRequireSourcePostedPublic

but the rest should make interesting reading as well.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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