public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How to compile without linking cygwin library?
@ 2003-09-24 19:11 Krzysztof Duleba
  2003-09-24 19:21 ` Christopher Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Duleba @ 2003-09-24 19:11 UTC (permalink / raw)
  To: cygwin

A discussion about different compilers currently takes place on polish
c/c++ newsgroup. One person mentioned that code compiled with MinGW gcc
don't have to be published under GPL license, but Cygwin gcc automatically
links cygwin library so the binary file can be distributed only under GPL.
Is it possible to make gcc work in the mode like in MinGW, where cygwin
library isn't present? Will it build a binary that can run on every MS
Windows machine?

Regards
Krzysztof Duleba



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to compile without linking cygwin library?
  2003-09-24 19:11 How to compile without linking cygwin library? Krzysztof Duleba
@ 2003-09-24 19:21 ` Christopher Faylor
  2003-09-24 19:40   ` Krzysztof Duleba
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Faylor @ 2003-09-24 19:21 UTC (permalink / raw)
  To: cygwin

On Wed, Sep 24, 2003 at 08:42:27PM +0200, Krzysztof Duleba wrote:
>A discussion about different compilers currently takes place on polish
>c/c++ newsgroup. One person mentioned that code compiled with MinGW gcc
>don't have to be published under GPL license, but Cygwin gcc automatically
>links cygwin library so the binary file can be distributed only under GPL.

Correct.

>Is it possible to make gcc work in the mode like in MinGW, where cygwin
>library isn't present?

Yes.  Use -mno-cygwin which is roughly the same thing as mingw.

This subject has been discussed to death.  Please check the mailing list
archives if you are interested in further details.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to compile without linking cygwin library?
  2003-09-24 19:21 ` Christopher Faylor
@ 2003-09-24 19:40   ` Krzysztof Duleba
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Duleba @ 2003-09-24 19:40 UTC (permalink / raw)
  To: cygwin

Christopher Faylor wrote

>>Is it possible to make gcc work in the mode like in MinGW, where cygwin
>>library isn't present?
>
> Yes.  Use -mno-cygwin which is roughly the same thing as mingw.

Thanks.

> This subject has been discussed to death.  Please check the mailing list
> archives if you are interested in further details.

I will. Thank you again.

Regards
Krzysztof Duleba



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-24 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-24 19:11 How to compile without linking cygwin library? Krzysztof Duleba
2003-09-24 19:21 ` Christopher Faylor
2003-09-24 19:40   ` Krzysztof Duleba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).