This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Build GDB 7.0 with Cygwin -mno-cygwin option.
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: Dmitry Smirnov <divis1969 at mail dot ru>, Joel Brobecker <brobecker at adacore dot com>, gdb at sourceware dot org, Pedro Alves <pedro at codesourcery dot com>
- Date: Thu, 8 Oct 2009 17:33:23 -0400
- Subject: Re: Build GDB 7.0 with Cygwin -mno-cygwin option.
- References: <200910071814.01611.pedro@codesourcery.com> <E1MvqkR-00024C-00.divis1969-mail-ru@f264.mail.ru>
On Thu, Oct 08, 2009 at 03:01:27PM +0400, Dmitry Smirnov wrote:
>>Cygwin's gcc is pulling Cygwin headers, while the build is assuming a
>>mingw host. Things are expected to break this way. I would assume at
>>least you'd need --host,build=i686-pc-mingw32 _and_ CC="gcc
>>-mno-cygwin". A real mingw gcc would be better.
>
>Thank you, Pedro, this works well. I had used ./configure --with-x=no
>--disable-tui --build=i686-pc-mingw32 CC="gcc -mno-cygwin"
A heads up: The latest C compiler for Cygwin no longer supports the
-mno-cygwin option. It just generates too much confusion.
We will have a MinGW "cross compiler" at some point which should take
the place of that option but it is not available yet.
cgf