delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/20/07:24:35

X-Recipient: archive-cygwin AT delorie DOT 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 DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gcc-3 problem when compiling
References: <h3sss1$dco$1 AT ger DOT gmane DOT org> <20090718193910 DOT GA478 AT ednor DOT casa DOT cgf DOT cx> <h3v3ur$tcp$1 AT ger DOT gmane DOT org> <4A6321B0 DOT 2050508 AT gmail DOT com> <h41j0b$gvq$1 AT ger DOT gmane DOT org>
In-Reply-To: <h41j0b$gvq$1@ger.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

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

- Raw text -


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