X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A6456E5.2080306@gmail.com>
Date: Mon, 20 Jul 2009 12:37:09 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: gcc-3 problem when compiling
References: <h3sss1$dco$1@ger.gmane.org> <20090718193910.GA478@ednor.casa.cgf.cx> <h3v3ur$tcp$1@ger.gmane.org> <4A6321B0.2050508@gmail.com> <h41j0b$gvq$1@ger.gmane.org>
In-Reply-To: <h41j0b$gvq$1@ger.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thomas Steinbach wrote:

  Hi Thomas, glad to hear you got your install working again.  We'll probably
never know quite what happened there, but with any luck you'll never need to.

> btw: In my old (gcc3) makefile I used -mno-cygwin within the
> LDFLAGS to compile real native win32 executables, but what
> do I have to pass to the compiler/linker to compile with gcc4.x to
> get real native win executables?
> Don't find correspondending switches. Without -mno-cygwin the
> compilation works with gcc4 too, but needs the cygwin1.dll

  Right; the -mno-cygwin feature in GCC-3 was a bit of a hack that
more-or-less turned the compiler into a cross-compiler for MinGW.  That
feature never worked entirely correctly - IIRC there were still some cygwin
headers or libs in the default search paths that could have caused problems -
and in GCC-4 the option has been removed.  We'll be shipping a specific GCC-4
MinGW cross-compiler later this summer, in the meantime you need to stick with
GCC-3 for MinGW cross-compilation.

    cheers,
      DaveK

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

