Earnie wrote:
Earnie wrote:
Roumen Petrov wrote:
Earnie wrote:
[SNIP]

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:

From:
http://msdn.microsoft.com/en-us/library/y4h7bcy6.aspx

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.


Roumen
>From 7d593ba4672e88b3f5be17dde3374bd5c27fa155 Mon Sep 17 00:00:00 2001
From: Roumen Petrov <bugtr...@roumenpetrov.info>
Date: Sat, 24 Dec 2011 01:27:48 +0200
Subject: [PATCH] build test plugin for mingw host

---
 tests/plugins/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/plugins/Makefile.am b/tests/plugins/Makefile.am
index b008f62..48f71d0 100644
--- a/tests/plugins/Makefile.am
+++ b/tests/plugins/Makefile.am
@@ -17,7 +17,7 @@ plugindir=$(shell pwd)/.libs/
 xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS)
 xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c
 xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS)
-xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version -rpath $(plugindir)
+xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version $(WIN32_EXTRA_LDFLAGS) -rpath $(plugindir)
 
 all:
 
-- 
1.7.1

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to