[PATCH] Support cross compiling with MinGW-w64 on Debian GNU/Linux
mdounin at mdounin.ru
Tue Oct 14 16:11:36 UTC 2014
On Wed, Oct 15, 2014 at 12:23:33AM +0900, Kouhei Sutou wrote:
> Thanks for reviewing. I've updated my patch.
> In <20141014141022.GL31276 at mdounin.ru>
> "Re: [PATCH] Support cross compiling with MinGW-w64 on Debian GNU/Linux" on Tue, 14 Oct 2014 18:10:22 +0400,
> Maxim Dounin <mdounin at mdounin.ru> wrote:
> >> > While this patch fixes compilation with MinGW-w64 gcc, it breaks
> >> > compilation with MinGW gcc, which isn't good.
> >> Oh...
> >> Could you show me the build errors? I don't have MinGW on my
> >> machine.
> > It ends up using 32-bit off_t as it doesn't understand
> > _FILE_OFFSET_BITS, and then build fails due to this.
> > No exact error message as I've already reverted VM where MinGW gcc
> > was installed to a previous state, sorry.
> Thanks for the information.
> I changed my patch to apply for MinGW-w64 gcc.
> But there is no macro to distinguish MinGW-w64 gcc and MinGW
> gcc... So I added MGX_MINGW_W64 and MGX_MINGW macros by
> auto/define and use ngx_auto_config.h in ngx_win32_config.h.
> How do you think about this approach?
It doesn't look like a good approach for me.
More information about the nginx-devel