delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/04/10:05:22

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
Date: Tue, 4 May 2004 16:02:58 +0200
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Reply-To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: Esse keine toten Tiere
Message-ID: <1145900103.20040504160258@familiehaase.de>
To: lazer1 <lazer1 AT blueyonder DOT co DOT uk>
CC: "Gerrit @ cygwin" <cygwin AT cygwin DOT com>
Subject: Re: How download gcc + its source?
In-Reply-To: <yam9620.2732.236421576@smtp.blueyonder.co.uk>
References: <yam9620 DOT 2732 DOT 236421576 AT smtp DOT blueyonder DOT co DOT uk>
MIME-Version: 1.0

lazer1 wrote:

>>This will pull also the gcc-mingw-core package which includes the
>>headers, libraries and symlinks to make use of the -mno-cygwin flag to
>>create cygwin independant binaries.

> programs that will run from outside the cygwin shell?

> how would I do hello world say hello.c,

> would it be:

> gcc -mno-cygwin -c hello.c -o hello.o
> gcc -mno-cygwin -o hello hello.o

> ?

Yes.

> (doing it in 2 stages in case I want to link several files),


>>If you want to compile C++, Ada, ObjC, Pascal, Fortran or Java sources
>>you'll need one or more of the gcc-xyz packages, please see the short
>>description displayed in the setup.exe chooser.

> for the moment just C,

>>Setup.exe also selects automatically the according MinGW packages if
>>one of the gcc-xyz packages is selected.  There are also some other
>>dependencies (i.e. ash, binutils, w32api, mingw-runtime, libintl2)
>>selected automatically which will pull other packages as well.

>>For cygwin GCC sources install the package gcc-core.

>>You may also need the `make' package and some more packages form the
>>devel category like `bison' & `flex', e.g. if you want to build GCC
>>from source.

> if I want to build GCC from the source that appeared from 
> setup.exe, will I have to apply the patch that appears next to the 
> source directory?
> or is that preapplied?
> or does the patch happen automatically?

The patch isn't applied, the build script does this for you in the
'prep' step, if yopu don't want to use the script you'll need to plly it
manually.  The distributed source should be the same as distributed via
the GCC mirrors (besides the script and patch files). 


Gerrit
-- 
=^..^=



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