pgsql: Fix contrib/sepgsql and contrib/xml2 to always link required lib

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix contrib/sepgsql and contrib/xml2 to always link required lib
Date: 2011-08-19 16:01:47
Message-ID: E1QuRVz-000642-Dy@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix contrib/sepgsql and contrib/xml2 to always link required libraries.

contrib/xml2 can get by without libxslt; the relevant features just
won't work. But if doesn't have libxml2, or if sepgsql doesn't have
libselinux, the link succeeds but the module then fails to work at load
time. To avoid that, link the require libraries unconditionally, so
that it will be clear at link-time that there is a problem.

Per discussion with Tom Lane and KaiGai Kohei.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1ffcc377f692fb227ebfeb6036aa949099d71979

Modified Files
--------------
contrib/sepgsql/Makefile | 2 +-
contrib/xml2/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-08-19 17:16:31 pgsql: Clean up 'chkselinuxenv' script.
Previous Message Robert Haas 2011-08-19 15:53:47 pgsql: Allow sepgsql regression tests to be run from a user homedir.