Re: [xml] libxml2-2.7.8 and MinGW

Earnie wrote:
Earnie wrote:
Roumen Petrov wrote:
Earnie wrote:

As discussed on the MinGW list here are the patches for both libxml2 and
libxslt adorning dllexport with extern for both __CYGWIN__ and __MINGW32__.

During the discussion on the MinGW list we discovered the following bit
of information about dllexport:


The use of dllexport implies a definition, while dllimport implies a
declaration. You must use the extern keyword with dllexport to force a
declaration; otherwise, a definition is implied.

And now with attachments.

About libxslt patch:
Changes in libexslt/exsltexports.h and libxslt/xsltexports.h break static only build.

Update in tests/plugins/testplugin.c is fine. In addition for mingw* hosts attached "0001-build-test-plugin-for-mingw-host.patch" is required : WIN32_EXTRA_LDFLAGS add no-undefined and this will allow plugin to be build as shared library and test pass.


Attachment: 0001-build-test-plugin-for-mingw-host.patch
Description: Text Data

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]