xslt-config should emit STATIC cppflags on windows when shared libraries are disabled
After commit 29923816 ... On windows, if shared libraries are disabled, then xslt-config
should emit -DLIBXSLT_STATIC
and -DLIBEXSLT_STATIC
.
(A similar change was previously made in libxml2 in libxml2@4188ddf8)
Without these CPP flags, users will see errors at linktime about undefined references, e.g.:
/usr/bin/x86_64-w64-mingw32-ld: foo.c:151: undefined reference to `__imp_xsltEngineVersion'
/usr/bin/x86_64-w64-mingw32-ld: foo.c:201: undefined reference to `__imp_exsltRegisterAll'
/usr/bin/x86_64-w64-mingw32-ld: foo.c:203: undefined reference to `__imp_xsltExtModuleFunctionLookup'
Edited by Mike Dalessio