delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/29/11:02:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Jon Leichter" <jonleichter AT attbi DOT com>
To: "Jonathan Wilson" <jonwil AT tpgi DOT com DOT au>
Cc: <cygwin AT cygwin DOT com>
Subject: RE: cygqwin with mingw32 question
Date: Fri, 29 Mar 2002 08:01:29 -0800
Message-ID: <CIENIMJIOHKBPJEFFFOBCEPJCGAA.jonleichter@attbi.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <3CA4567E.5080802@tpgi.com.au>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

Jonathan,

I have to admit that I don't quite understand your original question either.
However, it seems like you're interested in understanding some of the
internals of Cygwin's gcc and the -mno-cygwin switch.

First of all, a quick response: when you specify -mno-cygwin to the
compiler, __CYGWIN__ is NOT defined. Rather, __MINGW32__ is defined.

In the past, I made contributions to OpenLDAP so that it would build as
MinGW binaries with Cygwin gcc. As part of this contribution, I wrote a
detailed document on Cygwin, MinGW, and the internals of how they relate to
each other. You can read this document on OpenLDAP's web site:

  http://www.openldap.org/faq/data/cache/301.html

I don't vouch for its accurracy. I last updated it in December, but you know
how quickly software changes. Also, the content is based purely on my
experience as a user and not a developer of Cygwin. So there may be things
I'm wrong about. Nevertheless, it's fairly comprehensive. I hope this
helps...

Jon

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of Jonathan Wilson
> Sent: Friday, March 29, 2002 3:57 AM
> To: cygwin AT cygwin DOT com
> Subject: Re: cygqwin with mingw32 question
>
> I did see that but what I dont understand is if __CYGWIN__ is defined
> when -mno-cygwin is selected.
> I also need to know if cygwin GCC defines some specific flag that I can
> test for that identifies it as GCC.
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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