From: Bruno Haible Date: Fri, 15 Feb 2019 20:40:16 +0000 (+0100) Subject: libtextstyle: Fix build error on Cygwin and mingw. X-Git-Tag: v0.20~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf0cd26fdddb720bad7ad09133c1b5dcd2c3456;p=thirdparty%2Fgettext.git libtextstyle: Fix build error on Cygwin and mingw. * libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Define LIBXML_STATIC. --- 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