pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Xiaobo Gu <guxiaobo1982@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW
Date: Sun, 23 Jan 2011 22:45:27 -0500
Message-ID: <4D3CF5D7.1030107@dunslane.net> (raw)
In-Reply-To: <AANLkTikjq9dNEK_tZpQfha50Xzkp4RSE-KmYxTB622qa@mail.gmail.com>
References: <001b01cbb8b5$3ba547b0$b2efd710$@com>
	<AANLkTinY2PTxQ6yFmjE=C8fAZ1sijO1u_ehtHJ_vT5PB@mail.gmail.com>
	<4D38F81E.9050508@dunslane.net>
	<AANLkTi=AwssKV7xTyWrztrggfht693vQcSQWrcbTY2Pd@mail.gmail.com>
	<4D39A53E.2040005@dunslane.net>
	<001201cbbb0e$6edc2ad0$4c948070$@com>
	<AANLkTikjq9dNEK_tZpQfha50Xzkp4RSE-KmYxTB622qa@mail.gmail.com>



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



view thread (25+ messages)  latest in thread

Message-ID: <4D3CF5D7.1030107@dunslane.net>
Permalink:  ../4D3CF5D7.1030107@dunslane.net/
Also on:    postgresql.org/message-id/4D3CF5D7.1030107@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@dunslane.net, guxiaobo1982@gmail.com, magnus@hagander.net, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW
  In-Reply-To: <4D3CF5D7.1030107@dunslane.net>
  References: <001b01cbb8b5$3ba547b0$b2efd710$@com> <AANLkTinY2PTxQ6yFmjE=C8fAZ1sijO1u_ehtHJ_vT5PB@mail.gmail.com> <4D38F81E.9050508@dunslane.net> <AANLkTi=AwssKV7xTyWrztrggfht693vQcSQWrcbTY2Pd@mail.gmail.com> <4D39A53E.2040005@dunslane.net> <001201cbbb0e$6edc2ad0$4c948070$@com> <AANLkTikjq9dNEK_tZpQfha50Xzkp4RSE-KmYxTB622qa@mail.gmail.com> <4D3CF5D7.1030107@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox