Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C3BB100.7030700@ece.gatech.edu> Date: Tue, 08 Jan 2002 21:54:56 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Potential problems with cygwin GCC and -mno-cygwin switch References: <3C3B2C6A DOT 6428 DOT 2F45253 AT localhost> <20020109001421 DOT GA27238 AT redhat DOT com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Christopher Faylor wrote: > Off the top of my head, there are a few issues with mingw support in > cygwin gcc (I think most if not all have already been mentioned): > > 1) It's supported by me currently. While I have no problem with mingw as > an entity, it's not my project, and maintaining the gcc/ld aspects do > not thrill me. I have a few patches in my tree that are not part of > the standard gcc offering. That's one reason why gcc 3.x built from the > official gcc release will behave differently from the cygwin gcc 2.95.3. > > 2) While I have gone to some pains to isolate header files in the -mno-cygwin > case, I didn't do the same thing for libraries. That means if you do > 'gcc -mno-cygwin foo.c -lncurses' ld will attempt (and fail) to link the > cygwin version of ncurses into your program in some cases. > > 3) c++ support doesn't work since we don't provide a mingw version of > libstdc++.a. This has been on my tuit list for a while, though. Wasn't Earnie going to provide this as a package at one point? Or am I misremembering? > 4) 'gcc -mno-cygwin -print-some-gcc-thing' doesn't work right. 5) CC='gcc -mno-cygwin' sometimes causes flaky problems with autoconfiguration. And libtool. (cf. related thread where somebody proposed a wrapper script with a "cross-compiler-ish" name like 'mingw32-pc-i386-gcc' that just relayed to 'gcc -mno-cygwin'.) I'd prefer an actual binary (not a script) that exec'ed gcc with an added '-mno-cygwin' argument -- but then, I'd truly prefer an honest-to-god, mingw target cygwin host cross compiler package. Notwithstanding, we'd STILL need to have gcc -mno-cygwin even if we DID have a real cross compiler, for reasons that Chris explained in his earlier message. --Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/