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

Kouhei Sutou kou at cozmixng.org
Mon Oct 27 15:01:26 UTC 2014


Hi,

Could you confirm the patch?

  http://mailman.nginx.org/pipermail/nginx-devel/2014-October/006094.html


Thanks,
--
kou

In <20141018.004250.1469014097857676892.kou at cozmixng.org>
  "Re: [PATCH] Support cross compiling with MinGW-w64 on Debian GNU/Linux" on Sat, 18 Oct 2014 00:42:50 +0900 (JST),
  Kouhei Sutou <kou at cozmixng.org> wrote:

> 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



More information about the nginx-devel mailing list