Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gigWE-0001qL-Ei for pgsql-general@arkaria.postgresql.org; Sun, 13 Jan 2019 14:13:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gigWA-0001We-Tl for pgsql-general@arkaria.postgresql.org; Sun, 13 Jan 2019 14:13:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gigWA-0001TQ-Jy for pgsql-general@lists.postgresql.org; Sun, 13 Jan 2019 14:13:38 +0000 Received: from sender-of-o51.zoho.com ([135.84.80.216]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gigW8-0002D3-B1 for pgsql-general@lists.postgresql.org; Sun, 13 Jan 2019 14:13:37 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1547388809; cv=none; d=zoho.com; s=zohoarc; b=WPJiYkZT896GXSHuhw64Do3YtuIzU5T55f+J1GQia+s0EtOKxrMS6bGrj2PSVPwChk3SddLAM634y8I2Ffrie4iMvAHucAJ8jcxpo0nQFfoedcXMjn7ofOPIsiZd0arVbjBzOSA12GUf0PNmmKWig6Un3fMTnYtZFyQf6W884ic= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1547388809; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=4hjqZBBrKDDGdsretJ271paewnfarxxed9BeiOMcVG4=; b=fG/9Md/iGMWV6pHGwFCVZ1QKGuhpoIFxI/LSCm19OYpHRgiH3Bws3zFQDVHQPllb8dw+xjXCLNpoPS0+yC7IMx6TkrB7y+2Txjig0yME/XQeYdr+gOD/B98ZWmm47u3ajKt/lsd6ld7JWZqpa7r8rxiaXEU0oLMzRnW+n8alOGE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zv.io; spf=pass smtp.mailfrom=me@zv.io; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1547388809; s=zoho; d=zv.io; i=me@zv.io; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References:Content-Type:Mime-Version:Content-Transfer-Encoding; l=1320; bh=4hjqZBBrKDDGdsretJ271paewnfarxxed9BeiOMcVG4=; b=O1kEAMGP9PxqvRX0+B/xEnANMwzKkjk2sRFhcysc6Vpzu8WlwbAd3dh7w5AqAhwj AR3F7e5oxn2lSNOaHR0xsn1Cl+Zw3bDqeLx0VR9z1K2vATRZg4hDBIBx7PJswD4kjyW 5y2xezCuNJa5+UAK3JztM7BivOiU4CX7jJHvhuh0= Received: from lighthouse (c-69-139-81-7.hsd1.pa.comcast.net [69.139.81.7]) by mx.zohomail.com with SMTPS id 1547388807890534.4195149660226; Sun, 13 Jan 2019 06:13:27 -0800 (PST) Message-ID: <1547388806.4002.20.camel@zv.io> Subject: Re: Static PostgreSQL Binaries (Linux + Windows) From: Zach van Rijn To: Pratik Parikh Cc: pgsql-general@lists.postgresql.org Date: Sun, 13 Jan 2019 09:13:26 -0500 In-Reply-To: References: <1547351839.4002.17.camel@zv.io> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, 2019-01-13 at 00:51 -0500, Pratik Parikh wrote: > Than you. nice=C2=A0to hear from you .=C2=A0 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- # 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). >=20 > 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