[xml] Problem building dll from linux using cross-compiler mingw32 (include patch)



Hi,

When cross-compiling libxml2 for windows on a linux system, the dll is not buid.

I had a hard trying to understand why, although it made me anderstand a *lot* about cross-compiling :-)
The problem is fixed by the attached patch.

Cheers,

Christophe

Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/gnome-xml/Makefile.am,v
retrieving revision 1.221
diff -u -r1.221 Makefile.am
--- Makefile.am 26 Feb 2004 09:57:32 -0000      1.221
+++ Makefile.am 26 Feb 2004 19:23:58 -0000
@@ -17,7 +17,7 @@
 lib_LTLIBRARIES = libxml2.la
 libxml2_la_LIBADD = @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) @M_LIBS@ @WIN32_EXTRA_LIBADD@
 
-libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@
+libxml2_la_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -version-info @LIBXML_VERSION_INFO@
 
 if WITH_TRIO_SOURCES
 libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \


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