Compiling for native Windows
Ken Brown
kbrown@cornell.edu
Tue Dec 15 02:46:00 GMT 2015
On 12/14/2015 8:14 PM, sisyphus1@optusnet.com.au wrote:
> -----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.
Assuming that gmp supports cross-compiling (which is likely), you can just use
the configure option --host=x86_64-w64-mingw32. This will automatically select
the right gcc, nm, etc.
> I assume that if one wants a 32-bit build, one simply uses the "i686" cygwin
> package instead of the "x86_64" one.
Yes. And then configure --host=i686-w64-mingw32.
Ken
--
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