Question about using MinGW GCC on Cygwin

Yaakov Selkowitz yselkowitz@cygwin.com
Tue Dec 9 18:59:00 GMT 2014


On 2014-12-08 20:48, 陳韋任 (Wei-Ren Chen) wrote:
>    I am trying to build gdbserver [1] on cygwin with mingw-gcc, since
> I want to build native windows executable and cygwin-gcc doesn't
> support "-mno-cygwin" any more. Here is how I do the config,
>
> $ cd gdb-7.8.1/gdb/gdbserver
> $ CC=i686-pc-mingw32-gcc ./configure

Besides Corinna's point to use mingw64-i686-* instead of mingw-*, this 
is not how cross-compiling works.  You should run './configure 
--host=i686-w64-mingw32' instead.

--
Yaakov


--
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



More information about the Cygwin mailing list