pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Bring configure support for LZ4 up to snuff.
Date: Sun, 21 Mar 2021 21:20:24 +0000
Message-ID: <E1lO5Um-0006T2-45@gemulon.postgresql.org> (raw)

Bring configure support for LZ4 up to snuff.

It's not okay to just shove the pkg_config results right into our
build flags, for a couple different reasons:

* This fails to maintain the separation between CPPFLAGS and CFLAGS,
as well as that between LDFLAGS and LIBS.  (The CPPFLAGS angle is,
I believe, the reason for warning messages reported when building
with MacPorts' liblz4.)

* If pkg_config emits anything other than -I/-D/-L/-l switches,
it's highly unlikely that we want to absorb those.  That'd be more
likely to break the build than do anything helpful.  (Even the -D
case is questionable; but we're doing that for libxml2, so I kept it.)

Also, it's not okay to skip doing an AC_CHECK_LIB probe, as
evidenced by recent build failure on topminnow; that should
have been caught at configure time.

Model fixes for this on configure's libxml2 support.

It appears that somebody overlooked an autoheader run, too.

Discussion: https://postgr.es/m/20210119190720.GL8560@telsasoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4d399a6fbeb720b34d33441330910b7d853f703d

Modified Files
--------------
configure                  | 64 ++++++++++++++++++++++++++++++++++++++++++++--
configure.ac               | 18 +++++++++++--
src/include/pg_config.h.in | 11 +++++++-
src/tools/msvc/Solution.pm |  3 +++
4 files changed, 91 insertions(+), 5 deletions(-)



Message-ID: <E1lO5Um-0006T2-45@gemulon.postgresql.org>
Permalink:  ../E1lO5Um-0006T2-45@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lO5Um-0006T2-45@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Bring configure support for LZ4 up to snuff.
  In-Reply-To: <E1lO5Um-0006T2-45@gemulon.postgresql.org>
  References: <E1lO5Um-0006T2-45@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