Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Patrick Doyle" To: "Robert Collins" , "cygwin" Subject: RE: Setting -mno-cygwin in an environment variable Date: Sun, 18 Mar 2001 16:17:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal In-Reply-To: <023b01c0ae74$a6412360$0200a8c0@lifelesswks> Thanks... I might explore the CC="gcc -mno-cygwin" route, at least as a short term solution. The medium term solution could be mingw, although I also have times when I need to compile UNIX-based programs on my Windows box, so I would still want to be able to take advantage of the Cygwin DLL in those cases. --wpd > -----Original Message----- > From: cygwin-owner AT sources DOT redhat DOT com > [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Robert Collins > Sent: Friday, March 16, 2001 6:56 PM > To: Patrick Doyle; cygwin > Subject: Re: Setting -mno-cygwin in an environment variable > > > Oh, and I forgot, you can also simply export CC="gcc -no-cygwin" > > Rob > > > ----- Original Message ----- > From: "Robert Collins" > To: "Patrick Doyle" ; "cygwin" > Sent: Saturday, March 17, 2001 10:37 AM > Subject: Re: Setting -mno-cygwin in an environment variable > > > > You don't need automake - autoconf (which automake requires) will do > > what you need. Or you could consider altering the gcc specs file on > your > > cygwin machine to make -nocygwin the default. Or even consider > > installing mingw which sounds like a closer match for your target > > builds. > > > > Rob > > > > > > ----- Original Message ----- > > From: "Patrick Doyle" > > To: "cygwin" > > Sent: Saturday, March 17, 2001 8:08 AM > > Subject: Setting -mno-cygwin in an environment variable > > > > > > > I have a number of ANSI C projects that I frequently migrate between > > my > > > Linux box and my Cygwin box. I prefer to compile with > the -mno-cygwin > > flag > > > on my Cygwin box because I don't use anything other than pure ANSI > > > functions, so I don't want to require the cygwin DLL (in order to > all > > me to > > > execute the program on a box which has not had Cygwin installed). > Up > > until > > > now, I have simply included a "NO_CYGWIN" flag in my makefiles, > which > > is set > > > to "-mno-cygwin" when I compile on the Cygwin box and set to nothing > > when I > > > compile on the Linux box. > > > > > > I would like to automate this process somewhat. I was wondering: > > > > > > a) Are there any (Cygwin specific) environment variables that "gcc" > > > recognizes that would allow me to specify -mno-cygwin simply by > > setting such > > > a variable? (I don't see any in the info file for gcc.) > > > > > > b) If not then, if I were to add such a capability, could I post the > > patch > > > to this list and hope to see it propagated to the gcc development > > team, or > > > would I have to join the gcc mailing list and submit the patch > > directly > > > there and wait for it to propagate to cygwin? > > > > > > (Personally, I am hoping that the answer to part (a) is "yes, simply > > set the > > > GCC_DEFAULT_MACHINE environment variable to -mno-cygwin and you'll > get > > the > > > behavior that you want".) > > > > > > I've tried browsing the mailing list archive, but do you have any > idea > > how > > > many hits it finds when searching for things like "gcc", > "environment > > > variable", or "-mno-cygwin" (which gets parsed into "mno" and > > "cygwin" -- > > > lots of hits on that last one)? > > > > > > I suppose the final option would be for me to finally learn to use > > automake > > > and to switch between the two boxes that way. If somebody could > point > > me at > > > a good beginners tutorial for that, I can try that path as well. > > > > > > Thanks... > > > --wpd > > > > > > > > > -- > > > Want to unsubscribe from this list? > > > Check out: http://cygwin.com/ml/#unsubscribe-simple > > > > > > > > > > > > -- > > Want to unsubscribe from this list? > > Check out: http://cygwin.com/ml/#unsubscribe-simple > > > > > > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple > -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple