delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/22/12:07:51

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
Message-Id: <5.2.0.9.2.20030222084142.01dad510@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sat, 22 Feb 2003 09:08:16 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: gcc2 instead gcc
In-Reply-To: <OFC4377760.E8F2BA1C-ONC1256CD5.003262AF-C1256CD5.0032ABA6@
rsag.ch>
Mime-Version: 1.0

Christian,

Thorsten's delicate advice notwithstanding, if you installed the 
"historic" GCC 2.95.3 compiler contained in the "gcc2" package, you 
must use "gcc-2" to invoke it. Note that the package name has no 
hyphen, but the compiler name does. Makefiles usually use the variable 
CC to invoke the C compiler, so you can probably override make's or the 
make-file's built-in default to use gcc-2 by doing something like this:

     CC=gcc-2 make

or
     export CC=gcc-2
     make

That might work for simple makefiles, but for more complicated software 
with an auto-configuration script (presumably this applies to 
PostgreSQL) you'll probably have to run "configure --help" to show you 
which options allow you to specify an alternate compiler.

However, as Thorsten also hinted, there should be no need to use the 
older compiler, certainly not for well-written code. It seems pretty 
unlikely that PostgreSQL must be compiled with an old compiler.

Randall Schulz


At 01:13 2003-02-22, christian DOT schuster AT rsag DOT ch wrote:

>Hi list,
>
>I am newbie and have a simple question. I want to compile PostgreSQL 
>with gcc2 instead of gcc. First I downloaded just the gcc2 compiler. 
>But the as I wanted to configure I had the error that no C compiler is 
>installed. So, I also downloaded gcc and then I could compile.
>
>How can I do that when I compile a program that it is done with gcc2?
>
>Which one is better of those two?
>
>Thanks for any help.
>
>Christian Schuster


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