Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64

Lars Kanis <kanis@comcard.de>

From: Lars Kanis <kanis@comcard.de>
To: Pavel Golub <pavel@gf.microolap.com>
Cc: pgsql-hackers@postgresql.org
Date: 2011-11-24T09:39:07Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Remove troublesome Asserts in cost_mergejoin().

  2. Enable building with the Mingw64 compiler.

> Can you please provide me with some howto on building PG sources with
> mingw-w64? 

For 32/64 bit mingw-v4.6.1 on ubuntu 11.10:
apt-get install flex gcc-mingw-w64
./configure --host=i686-w64-mingw32 --build=x86_64-linux --without-zlib && make
and
./configure --host=x86_64-w64-mingw32 --build=x86_64-linux --without-zlib && make

For 32 bit mingw-v4.4.4 on ubuntu 11.10:
apt-get install flex gcc-mingw32
./configure --host=i586-mingw32msvc --build=x86_64-linux --without-zlib && make

Regards,
Lars Kanis