]> granicus.if.org Git - postgresql/commit
Fix contrib/sepgsql and contrib/xml2 to always link required libraries.
authorRobert Haas <rhaas@postgresql.org>
Fri, 19 Aug 2011 15:57:38 +0000 (11:57 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 19 Aug 2011 16:01:23 +0000 (12:01 -0400)
commit1ffcc377f692fb227ebfeb6036aa949099d71979
tree0835ef3cd7f41268cc4d2721e44d69220cb53c10
parent1013770dd22193928fab5a3e379dc5ebe5a260be
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.
contrib/sepgsql/Makefile
contrib/xml2/Makefile