delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/25/13:34:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <392D639C.1D2C7176@ece.gatech.edu>
Date: Thu, 25 May 2000 13:32:12 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "Parker, Ron" <rdparker AT butlermfg DOT com>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: cygwin-gcc -mno-cygwin vs mingw (WAS: RE: CygUtils Version of
zip(and Symlinks))
References: <200005251611 DOT MAA17681 AT mail DOT ee DOT gatech DOT edu>

"Parker, Ron" wrote:
> 
> > mingw == 'free alternative for a good Win32 compiler'
> > cygwin-gcc -mno-cygwin == 'another free alternative for a good Win32
> > compiler'
> > cygwin-gcc -mno-cygwin != mingw
> >
> > I'm not sure how this affects your argument below, but the difference
> > between cygwin-gcc -mno-cygwin and mingw does need to be considered.
> 
> Enlighten me or direct me to a source if possible.  What are the
> differences?

AFAIK, 'cygwin-gcc -mno-cygwin' is a cross-compile as Earnie put it. You
have a 'cygwin-native' gcc running in the POSIX environment provided by
cygwin, but you use it to build a Win32-native executable that does not
depend on cygwin at all. So, it's like using a Linux gcc to
cross-compile a Win32 program; I think you should have separate include
dirs and lib dirs when building this way -- just like you would in a
"normal" linux cross-compile setup.

mingw is a port of gcc that actually runs in the Win32-native system.
The compiler itself does not need or use the POSIX environment provided
by cygwin. In fact, you can install mingw and use it without having
cygwin installed at all. So, mingw is a native win32 compiler.

So, since we're disussing whether to build zip as a unix or a windows
program, the right answer IMO is:

cygwin-gcc, target=cygwin: build as unix
cygwin-gcc -mno-cygwin: build as win32
mingw: build as win32

Someone else mentioned whether 'UNIX' or some variation thereof should
be defined in the specs file for cygwin-gcc. IMO, yes -- but only if
!mno-cygwin.

--Chuck

P.S. see http://www.mingw.org/ for more info.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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