]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libtextstyle: Fix build error on Cygwin and mingw.
authorBruno Haible <bruno@clisp.org>
Fri, 15 Feb 2019 20:40:16 +0000 (21:40 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 15 Feb 2019 20:44:08 +0000 (21:44 +0100)
* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Define LIBXML_STATIC.

libtextstyle/lib/Makefile.am

index f63fbf158834369e8fc335f72c1913114cb9877a..29a8ab9547a1dff36b35341504784e4ee5a73da7 100644 (file)
@@ -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