diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index b3c09bc7dd39..3e48d517893f 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -88,6 +88,10 @@ LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \ instrumentation ipo irreader selectiondag jit mc mcjit \ linker option +ifeq ($(HOST_OS),MingW) + USEDLIBS += lldbHostWindows.a +endif + ifeq ($(HOST_OS),Darwin) USEDLIBS += lldbHostMacOSX.a \ lldbPluginDynamicLoaderMacOSX.a \ @@ -125,6 +129,10 @@ endif include $(LEVEL)/Makefile.common +ifeq ($(HOST_OS),MingW) + LLVMLibsOptions += -lws2_32 +endif + ifeq ($(HOST_OS),Darwin) LLVMLibsOptions += -Wl,-all_load # set dylib internal version number to llvmCore submission number