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 Date: Thu, 11 Jan 2001 15:58:18 -0500 From: Christopher Faylor To: Egor Duda Subject: Re: make -mno-win32 the gcc default? Message-ID: <20010111155818.C17041@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Egor Duda References: <20010110163107 DOT A4979 AT redhat DOT com> <3A5CDA12 DOT B7533F6C AT ece DOT gatech DOT edu> <20010110170527 DOT B21342 AT volta DOT certicom DOT com> <3A5CDEA3 DOT CAB59B71 AT ece DOT gatech DOT edu> <171329197110 DOT 20010111103208 AT logos-m DOT ru> <3A5D6B3D DOT 48C2077F AT ece DOT gatech DOT edu> <3A5E17B8 DOT FB338BAC AT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <3A5E17B8.FB338BAC@yahoo.com>; from earnie_boyd@yahoo.com on Thu, Jan 11, 2001 at 03:29:44PM -0500 On Thu, Jan 11, 2001 at 03:29:44PM -0500, Earnie Boyd wrote: >Charles Wilson wrote: >> >> Egor Duda wrote: >> > >> > Hi! >> > >> > Thursday, 11 January, 2001 Charles Wilson cwilson AT ece DOT gatech DOT edu wrote: >> > >> > CW> Sure. 'export CC="gcc -mwin32"' and 'export CXX="g++ -mwin32"' in your >> > CW> .bashrc >> > >> > perhaps we should put >> > 'export CC="gcc -mno-win32"' and 'export CXX="g++ -mno-win32"' in our >> > .bashrc's and live with it for some time before making it default? >> > >> > BTW, shouldn't it be >> > 'export CFLAGS="-mno-win32"' and 'export CXXFLAGS="-mno-win32"' ? >> >> Yeah, you're probably right. But lots of times I'll do this: >> > >No, he's wrong, IMO. CC, CXX are the correct variables to set. The >reason is that CFLAGS and CXXFLAGS should be used for optimization and >flags that are architecture independent while the architecture dependent >flags should be passed with the CC, CXX variables. This allows the >configure script to use the architecture dependent flags in it's checks >for what's available. Otherwise, you might misconfigure the package. Yes. I think that Earnie is right here. cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple