Index: source/API/Makefile
===================================================================
--- source/API/Makefile	(revision 203501)
+++ source/API/Makefile	(working copy)
@@ -12,3 +12,7 @@
 BUILD_ARCHIVE = 1
 
 include $(LLDB_LEVEL)/Makefile
+
+ifeq ($(HOST_OS),MingW)
+CXXFLAGS += -DEXPORT_LIBLLDB
+endif
Index: Makefile
===================================================================
--- Makefile	(revision 203501)
+++ Makefile	(working copy)
@@ -38,6 +38,11 @@
 CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Process/Utility
 CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Process/POSIX
 
+# Disable python and curses on mingw build
+ifeq ($(HOST_OS),MingW)
+CXXFLAGS += -DLLDB_DISABLE_PYTHON -DLLDB_DISABLE_CURSES
+endif
+
 ifeq (,$(findstring -DLLDB_DISABLE_PYTHON,$(CXXFLAGS)))
 # Set Python include directory
 PYTHON_INC_DIR = $(shell python-config --includes)
