X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=3.4 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Message-id: <4C058855.1050304@cygwin.com> Date: Tue, 01 Jun 2010 18:23:17 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.7: how do I use gcc-4 and mingw (to replace -mno_cygwin)? References: In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 6/1/2010 5:45 PM, Jim Reisert AD1C wrote: > Since upgrading to Cygwin 1.7 eons ago, I lost the ability to compile > -mno_cygwin using gcc4. I did find that I can still compile using > gcc3. > > What's the simplest migration path from "gcc -mno-cygwin" (gcc3) to > the equivalent in gcc4? I've seen this text: > > "For gcc-4, there'll be a separate MinGW cross compiler package, > which unfortunately isn't quite ready yet." > > How would I use such a package in my Makefile, assuming it's ready for > Cygwin 1.7 now? You'd invoke the cross-compiler directly instead of 'gcc-3 -mno-cygwin'. Or better, set CC before (or as part of) invoking 'make' so you don't have to put anything specific into your makefile. > If it's NOT ready, I can continue to use gcc3 until I run into > something that's only supported in gcc4. Considering the code I > write, it may never come to this. It's not ready yet. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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