From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Build src/common files as a library with -fPIC.
Date: Fri, 28 Sep 2018 18:28:30 +0000
Message-ID: <E1g5xV8-0005Sa-7g@gemulon.postgresql.org> (raw)
Build src/common files as a library with -fPIC.
Build a third version of libpgcommon.a, with -fPIC and -DFRONTEND,
as commit ea53100d5 did for src/port. Use that in libpq to avoid
symlinking+rebuilding source files retail.
Also adjust ecpg to use the new src/port and src/common libraries.
Arrange to install these libraries, too, to simplify out-of-tree
builds of shared libraries that need any of these modules.
Discussion: https://postgr.es/m/13022.1538003440@sss.pgh.pa.us
Discussion: https://postgr.es/m/E1g5Y8r-0006vs-QA@gemulon.postgresql.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7143b3e82136d2941b3394168940d895a29b4f36
Modified Files
--------------
src/Makefile.global.in | 15 ++++++----
src/common/Makefile | 48 ++++++++++++++++++++++++-------
src/interfaces/ecpg/compatlib/.gitignore | 4 ---
src/interfaces/ecpg/compatlib/Makefile | 13 ++-------
src/interfaces/ecpg/ecpglib/.gitignore | 9 ------
src/interfaces/ecpg/ecpglib/Makefile | 27 +++--------------
src/interfaces/ecpg/pgtypeslib/.gitignore | 7 -----
src/interfaces/ecpg/pgtypeslib/Makefile | 20 ++-----------
src/interfaces/libpq/.gitignore | 9 ------
src/interfaces/libpq/Makefile | 22 ++++++--------
src/port/Makefile | 5 ++--
11 files changed, 68 insertions(+), 111 deletions(-)
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Build src/common files as a library with -fPIC.
In-Reply-To: <E1g5xV8-0005Sa-7g@gemulon.postgresql.org>
References: <E1g5xV8-0005Sa-7g@gemulon.postgresql.org>
* 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