pgsql: Fix contrib/sepgsql and contrib/xml2 to always link required lib - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Fix contrib/sepgsql and contrib/xml2 to always link required lib
Date
Msg-id E1QuRVz-000640-DD@gemulon.postgresql.org
Whole thread Raw
List 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/10c378f2350a8321ea76fc02d821a9e7707c7563

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


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Allow sepgsql regression tests to be run from a user homedir.
Next
From: Robert Haas
Date:
Subject: pgsql: Fix contrib/sepgsql and contrib/xml2 to always link required lib