mirror of
https://github.com/postgres/postgres.git
synced 2025-12-09 02:08:45 +03:00
Prior to 8.3, these changes are not critical for compatibility with core Postgres, since core had no libxml2 calls then. However there is still a risk if contrib/xml2 is used along with libxml2 functionality in Perl or other loadable modules. So back-patch to all versions. Also back-patch addition of regression tests. I'm not sure how many of the cases are interesting without the interaction with core xml code, but a silly regression test is still better than none at all.
27 lines
589 B
Makefile
27 lines
589 B
Makefile
# This makefile will build the new XML and XSLT routines.
|
|
|
|
MODULE_big = pgxml
|
|
|
|
# Remove xslt_proc.o from the following line if you don't have libxslt
|
|
OBJS = xpath.o xslt_proc.o
|
|
|
|
# Remove -lxslt from the following line if you don't have libxslt.
|
|
SHLIB_LINK = -lxslt -lxml2
|
|
|
|
DATA_built = pgxml.sql
|
|
REGRESS = xml2
|
|
DOCS = README.xml2
|
|
|
|
PG_CPPFLAGS := $(shell xml2-config --cflags)
|
|
|
|
ifdef USE_PGXS
|
|
PGXS := $(shell pg_config --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/xml2
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|