Index: third_party/libxml/src/win32/Makefile.mingw |
diff --git a/third_party/libxml/src/win32/Makefile.mingw b/third_party/libxml/src/win32/Makefile.mingw |
index e79970eb224c648a8d65c21a1dabe25622ca6798..18893760d643a0ac0ba365e1d6d36b8edad1fbe6 100644 |
--- a/third_party/libxml/src/win32/Makefile.mingw |
+++ b/third_party/libxml/src/win32/Makefile.mingw |
@@ -33,15 +33,15 @@ UTILS_INTDIR = int.utils.mingw |
# The preprocessor and its options. |
CPP = gcc.exe -E |
-CPPFLAGS += -I$(XML_SRCDIR)/include |
+CPPFLAGS += -I$(XML_SRCDIR)/include -DNOLIBTOOL |
ifeq ($(WITH_THREADS),1) |
CPPFLAGS += -D_REENTRANT |
endif |
# The compiler and its options. |
CC = gcc.exe |
-CFLAGS += -DWIN32 -D_WINDOWS -D_MBCS |
-CFLAGS += -I$(XML_SRCDIR) -I$(XML_SRCDIR)/include -I$(INCPREFIX) |
+CFLAGS += -DWIN32 -D_WINDOWS -D_MBCS -DNOLIBTOOL |
+CFLAGS += -I$(XML_SRCDIR) -I$(XML_SRCDIR)/include -I$(INCPREFIX) $(INCLUDE) |
ifneq ($(WITH_THREADS),no) |
CFLAGS += -D_REENTRANT |
endif |
@@ -60,26 +60,34 @@ endif |
ifeq ($(WITH_ZLIB),1) |
CFLAGS += -DHAVE_ZLIB_H |
endif |
+ifeq ($(WITH_LZMA),1) |
+CFLAGS += -DHAVE_LZMA_H |
+endif |
# The linker and its options. |
LD = gcc.exe |
LDFLAGS += -Wl,--major-image-version,$(LIBXML_MAJOR_VERSION) |
LDFLAGS += -Wl,--minor-image-version,$(LIBXML_MINOR_VERSION) |
LDFLAGS += -Wl,-L,$(BINDIR) -Wl,-L,$(LIBPREFIX) |
-LIBS = |
+LIBS = |
ifeq ($(WITH_FTP),1) |
CFLAGS += -D_WINSOCKAPI_ |
-LIBS += -lwsock32 |
+LIBS += -lwsock32 -lws2_32 |
endif |
ifeq ($(WITH_HTTP),1) |
CFLAGS += -D_WINSOCKAPI_ |
-LIBS += -lwsock32 |
+LIBS += -lwsock32 -lws2_32 |
endif |
ifeq ($(WITH_ICONV),1) |
LIBS += -liconv |
endif |
ifeq ($(WITH_ZLIB),1) |
-LIBS += -lzdll |
+# Could be named differently |
+# LIBS += -lzdll |
+LIBS += -lz |
+endif |
+ifeq ($(WITH_LZMA),1) |
+LIBS += -llzma |
endif |
ifeq ($(WITH_THREADS),posix) |
LIBS += -lpthreadGC |
@@ -88,6 +96,8 @@ ifeq ($(WITH_MODULES),1) |
LIBS += -lkernel32 |
endif |
+LIBS += $(LIB) |
+ |
# The archiver and its options. |
AR = ar.exe |
ARFLAGS = -r |
@@ -103,7 +113,8 @@ endif |
# Libxml object files. |
-XML_OBJS = $(XML_INTDIR)/c14n.o\ |
+XML_OBJS = $(XML_INTDIR)/buf.o\ |
+ $(XML_INTDIR)/c14n.o\ |
$(XML_INTDIR)/catalog.o\ |
$(XML_INTDIR)/chvalid.o\ |
$(XML_INTDIR)/debugXML.o\ |
@@ -150,7 +161,8 @@ XML_OBJS = $(XML_INTDIR)/c14n.o\ |
XML_SRCS = $(subst .o,.c,$(subst $(XML_INTDIR)/,$(XML_SRCDIR)/,$(XML_OBJS))) |
# Static libxml object files. |
-XML_OBJS_A = $(XML_INTDIR_A)/c14n.o\ |
+XML_OBJS_A = $(XML_INTDIR_A)/buf.o\ |
+ $(XML_INTDIR_A)/c14n.o\ |
$(XML_INTDIR_A)/catalog.o\ |
$(XML_INTDIR_A)/chvalid.o\ |
$(XML_INTDIR_A)/debugXML.o\ |
@@ -213,7 +225,8 @@ UTILS = $(BINDIR)/xmllint.exe\ |
$(BINDIR)/testXPath.exe\ |
$(BINDIR)/runtest.exe\ |
$(BINDIR)/runsuite.exe\ |
- $(BINDIR)/testapi.exe |
+ $(BINDIR)/testapi.exe\ |
+ $(BINDIR)/testlimits.exe |
ifeq ($(WITH_THREADS),yes) |
UTILS += $(BINDIR)/testThreadsWin32.exe |
@@ -250,10 +263,11 @@ distclean : clean |
rebuild : clean all |
install-libs : all |
- cmd.exe /C "if not exist $(INCPREFIX)\libxml mkdir $(INCPREFIX)\libxml" |
+ cmd.exe /C "if not exist $(INCPREFIX)\libxml2 mkdir $(INCPREFIX)\libxml2" |
+ cmd.exe /C "if not exist $(INCPREFIX)\libxml2\libxml mkdir $(INCPREFIX)\libxml2\libxml" |
cmd.exe /C "if not exist $(BINPREFIX) mkdir $(BINPREFIX)" |
cmd.exe /C "if not exist $(LIBPREFIX) mkdir $(LIBPREFIX)" |
- cmd.exe /C "copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml" |
+ cmd.exe /C "copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml2\libxml" |
cmd.exe /C "copy $(BINDIR)\$(XML_SO) $(SOPREFIX)" |
cmd.exe /C "copy $(BINDIR)\$(XML_A) $(LIBPREFIX)" |
cmd.exe /C "copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX)" |