pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zach van Rijn <me@zv.io>
To: Pratik Parikh <pratik.p.parikh@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Static PostgreSQL Binaries (Linux + Windows)
Date: Sun, 13 Jan 2019 09:13:26 -0500
Message-ID: <1547388806.4002.20.camel@zv.io> (raw)
In-Reply-To: <CA+BhGGu2_VGJyUt6qRoG5FJrDs1toc0CDcMwLYA-CA6qMO9D2w@mail.gmail.com>
References: <1547351839.4002.17.camel@zv.io>
	<CA+BhGGu2_VGJyUt6qRoG5FJrDs1toc0CDcMwLYA-CA6qMO9D2w@mail.gmail.com>

On Sun, 2019-01-13 at 00:51 -0500, Pratik Parikh wrote:
> Than you. nice to hear from you .  Would be able to share the
> build scripts with community? are they open source?

Hi Pratik,


Yes; the build scripts were linked at the bottom of my original
mail message in this chain: https://git.zv.io/xstatic/builder/

  $ git clone https://git.zv.io/xstatic/builder.git
  $ cd builder
  $ ./build postgresql-<release> # 11.1, etc.

Under the hood, the only major "technique" is wrapping the 'gcc'
command with flags such as '-static' to ensure that everything
is built correctly, and using reliable toolchains [1].

There is one minor issue in that the postgres build scripts no
longer appear to support static building [2,3] so it'll attempt
to build files such as 'POSIX.so' etc. and these cause errors.

The workaround is simply to ignore these errors during build
until I or someone else can get around to supplying patches (in
the next week or so; I have other commitments).

> 
> Regards,
> Pratik Parikh

ZV


[1]: https://musl.cc/

[2]: https://www.postgresql.org/message-id/CABFfbXuxyO20JN8T%2BC
yfSe29T-GTON69FrKHQ%3Dc9jDMxnm6C_w%40mail.gmail.com

[3]: https://www.postgresql.org/message-id/CABFfbXvONEKE2Bpnbfm5
%3Df3fVVLpv6jLVUAhF7iGoWN7a_EeRw%40mail.gmail.com





view thread (7+ messages)  latest in thread

Message-ID: <1547388806.4002.20.camel@zv.io>
Permalink:  ../1547388806.4002.20.camel@zv.io/
Also on:    postgresql.org/message-id/1547388806.4002.20.camel@zv.io

 · 

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-general@postgresql.org
  Cc: me@zv.io, pratik.p.parikh@gmail.com
  Subject: Re: Static PostgreSQL Binaries (Linux + Windows)
  In-Reply-To: <1547388806.4002.20.camel@zv.io>
  References: <1547351839.4002.17.camel@zv.io> <CA+BhGGu2_VGJyUt6qRoG5FJrDs1toc0CDcMwLYA-CA6qMO9D2w@mail.gmail.com> <1547388806.4002.20.camel@zv.io>

* 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