From bcf0cd26fdddb720bad7ad09133c1b5dcd2c3456 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 15 Feb 2019 21:40:16 +0100 Subject: [PATCH] libtextstyle: Fix build error on Cygwin and mingw. * libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Define LIBXML_STATIC. --- libtextstyle/lib/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libtextstyle/lib/Makefile.am b/libtextstyle/lib/Makefile.am index f63fbf158..29a8ab954 100644 --- a/libtextstyle/lib/Makefile.am +++ b/libtextstyle/lib/Makefile.am @@ -41,6 +41,13 @@ AM_CPPFLAGS = \ -I$(top_builddir) -I$(top_srcdir) \ -DIN_LIBTEXTSTYLE +# Parameterization of the 'libxml' module: +# When building a shared library, don't export the variables +# xmlMalloc, xmlMallocAtomic, xmlRealloc, xmlFree, xmlMemStrdup. +if INCLUDED_LIBXML +AM_CPPFLAGS += -DLIBXML_STATIC +endif + # Rules generated and collected by gnulib-tool. include Makefile.gnulib -- 2.47.2