delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/23/07:40:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <6BFA9AF2C7556E42AFF3F187ECAB07B802F9CFD0@bespdc01.mediaxim.local>
References: <6BFA9AF2C7556E42AFF3F187ECAB07B802F9CFD0 AT bespdc01 DOT mediaxim DOT local>
Date: Mon, 23 Apr 2012 07:40:25 -0400
Message-ID: <CA+sc5m=cKU5DaZFeJuEas-nfXD9uAsxq4V_9hcoUAM77u3OKNA@mail.gmail.com>
Subject: Re: Building for nocygwin
From: Earnie Boyd <earnie AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mon, Apr 23, 2012 at 7:35 AM, Michel Bardiaux wrote:
> A number of open-source projects (a.o. libav) indicate the use of
> -mnocygwin to build, on cygwin, libraries or executables that do not
> need the cygwin dll Section 6.10 of the FAQ also says so, but also
> states "This section has not yet been updated for the latest net
> release.". And indeed, gcc 4.5.3 just kicks you out with "The
> -mno-cygwin flag has been removed; use a mingw-targeted
> cross-compiler.".
>
> Using gcc-3, or setting it using /etc/alternatives, works but of course
> it is better to use the more recent compiler. Could someone publish the
> appropriate recipe?

Sure, --host=i686-pc-mingw32 or some other appropriate host string
during configure.  You'll need to make sure you have the appropriate
files for cross compiling.  The -mno-cygwin has been gone for some
months moving into years.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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