From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Sat, 25 Oct 2008 22:44:23 +0000 (+0100) Subject: Compile the XML modules support. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=112be72be945527575b4f85e679333596e2f48c7;p=fedora-mingw.git Compile the XML modules support. --- diff --git a/libxml2/mingw32-libxml2-2.7.2-with-modules.patch b/libxml2/mingw32-libxml2-2.7.2-with-modules.patch new file mode 100644 index 0000000..e26178c --- /dev/null +++ b/libxml2/mingw32-libxml2-2.7.2-with-modules.patch @@ -0,0 +1,15 @@ +--- libxml2-2.7.2/configure.in~ 2008-10-03 08:09:55.000000000 +0100 ++++ libxml2-2.7.2/configure.in 2008-10-25 23:14:18.000000000 +0100 +@@ -751,6 +751,12 @@ + AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso]) + ]) + ;; ++ *-*-mingw*) ++ # If I configured --with-modules then I damn well want ++ # modules and don't try to second-guess me. ++ MODULE_EXTENSION=".dll" ++ WITH_MODULES=1 ++ ;; + *) + AC_CHECK_FUNC(shl_load, libxml_have_shl_load=yes, [ + AC_CHECK_LIB(dld, shl_load, [ diff --git a/libxml2/mingw32-libxml2.spec b/libxml2/mingw32-libxml2.spec index 0fc3ae3..f49f622 100644 --- a/libxml2/mingw32-libxml2.spec +++ b/libxml2/mingw32-libxml2.spec @@ -6,7 +6,7 @@ Name: mingw32-libxml2 Version: 2.7.2 -Release: 1%{?dist} +Release: 3%{?dist} Summary: MinGW Windows libxml2 XML processing library License: MIT @@ -18,6 +18,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Not required for MinGW. #Patch0: libxml2-multilib.patch +# MinGW-specific patches. +Patch1000: mingw32-libxml2-2.7.2-with-modules.patch + BuildArch: noarch BuildRequires: mingw32-filesystem >= 23 @@ -33,10 +36,11 @@ MinGW Windows libxml2 XML processing library. %prep %setup -q -n libxml2-%{version} +%patch1000 -p1 %build -LDFLAGS="-no-undefined" %{_mingw32_configure} --without-python +LDFLAGS="-no-undefined" %{_mingw32_configure} --without-python --with-modules make @@ -73,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Oct 25 2008 Richard W.M. Jones - 2.7.2-3 +- Enable modules support for libxslt. + * Fri Oct 17 2008 Richard W.M. Jones - 2.7.2-1 - Resynch to native Fedora package + patch.