[PATCH] Support cross compiling with MinGW-w64 on Debian GNU/Linux

Kouhei Sutou kou at cozmixng.org
Fri Oct 17 15:42:50 UTC 2014


Hi,

In <20141017144512.GF35211 at mdounin.ru>
  "Re: [PATCH] Support cross compiling with MinGW-w64 on Debian GNU/Linux" on Fri, 17 Oct 2014 18:45:12 +0400,
  Maxim Dounin <mdounin at mdounin.ru> wrote:

>> I add only 64bit version MinGW-w64 GCC support. We can
>> distinguish 64bit version MinGW-w64 GCC by the following
>> expression:
>> 
>>   defined(__GNUC__) && defined(_WIN64)
> 
> The MinGW-w64 wiki suggests the __MINGW64_VERSION_MAJOR macro can be 
> used to distinguish MinGW-w64 and MinGW:
> 
> http://sourceforge.net/p/mingw-w64/wiki2/Answer%20Check%20For%20Mingw-w64/

Thanks for the information. I don't know about it.
(I just checked only pre-defined macros by
"x86_64-w64-mingw32-gcc -dM -xc -E /dev/null"...)

I confirmed the the approach can work with both 32bit
version and 64bit version MinGW-w64 GCCs.


Could you merge the attached patch?


Thanks,
--
kou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32-made-build-able-with-mingw-w64-v5.patch
Type: text/x-patch
Size: 8089 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20141018/5a48c06d/attachment.bin>


More information about the nginx-devel mailing list