Re: Is there a way to build PostgreSQL client libraries with MinGW - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Is there a way to build PostgreSQL client libraries with MinGW
Date
Msg-id 4D3CF5D7.1030107@dunslane.net
Whole thread Raw
In response to Re: 答复: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW  (Xiaobo Gu <guxiaobo1982@gmail.com>)
Responses Re: Is there a way to build PostgreSQL client libraries with MinGW  (Xiaobo Gu <guxiaobo1982@gmail.com>)
List pgsql-hackers

On 01/23/2011 10:09 PM, Xiaobo Gu wrote:
> Here is my plan,
> 1. To make the configurate script pass:
>     Currently MinGW does not provide chmod, but on Windows I think this
> can be ignored now, we all use Admin
>     users to do the work.
> 2. To make a pg-client Makefile target, can you help wich which c
> files should be compiled and linked into dlls and lib file.
>


Why do you need to do this? Postgres can be built as is today on Mingw.
Not just the client libraries, the whole server too. It does not need to
be an Adminstrative user, and you should by no means assume that the
user building Postgres will be an administrator, nor that the user
running Postgres will be. My 32 bit Mingw certainly understands chmod.

There are machines doing this every day, several times a day. See
<http://www.pgbuildfarm.org/cgi-bin/show_status.pl> - frogmouth and
narwhal are examples. We've had working Mingw builds for quite a few
years now.

The only issue is building 64bit binaries. So get the build working for
32bit, then try switching to the 64bit compiler and see what breaks. If
all you need is the client library, build with no zlib or any other
third party libraries.

cheers

andrew


pgsql-hackers by date:

Previous
From: Xiaobo Gu
Date:
Subject: Re: 答复: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW
Next
From: Robert Haas
Date:
Subject: Re: sepgsql contrib module