This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Compiling for native Windows
- From: <sisyphus1 at optusnet dot com dot au>
- To: <cygwin at cygwin dot com>
- Date: Tue, 15 Dec 2015 12:14:32 +1100
- Subject: Re: Compiling for native Windows
- Authentication-results: sourceware.org; auth=none
- References: <E55DAFB039184B68A59ACA51835394A5 at OwnerPC311012> <566ECF40 dot 3020000 at gmail dot com>
-----Original Message-----
From: Marco Atzeri
Sent: Tuesday, December 15, 2015 1:16 AM
To: cygwin@cygwin.com
Subject: Re: Compiling for native Windows
you need to use the cross compiler package
mingw64-x86_64-gcc-core
/usr/bin/x86_64-w64-mingw32-gcc.exe
replaces the old "-mno-cygwin" usage
Thanks - that worked fine with gmp-6.1.0.
I also had to set some environment variables - eg NM=x86_64-w64-mingw32-nm ,
otherwise configure runs /usr/bin/nm and fails. But this is as expected.
I assume that if one wants a 32-bit build, one simply uses the "i686" cygwin
package instead of the "x86_64" one.
Nice !!
Cheers,
Rob
--
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