> Eli Freiman wrote the Makefile system.  Presumably you're supposed to
> check out lldb into llvm/tools/lldb/ , and build from the root of the
> LLVM project.  But I'm just guessing, I've never built it.

I see, thanks for that info. With the attached patch, it indeed seems to work 
for llvm from svn.
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -33,11 +33,10 @@
 	lldbPluginObjectFileELF.a \
 	lldbPluginSymbolFileDWARF.a \
 	lldbPluginSymbolFileSymtab.a \
+        lldbPluginUtility.a \
 	lldbSymbol.a \
 	lldbTarget.a \
 	lldbUtility.a \
-	plugin_llvmc_Base.a \
-	plugin_llvmc_Clang.a \
 	clangAnalysis.a \
 	clangAST.a \
 	clangBasic.a \
@@ -49,9 +48,9 @@
 	clangRewrite.a \
 	clangParse.a \
 	clangSema.a \
-	CompilerDriver.a \
 	EnhancedDisassembly.a \
-	clangChecker.a
+	clangChecker.a \
+	clangSerialization.a 
 
 include $(LLDB_LEVEL)/../../Makefile.config
 
@@ -74,6 +73,8 @@
 
 include $(LEVEL)/Makefile.common
 
+LD.Flags += -lclang -lunwind -lunwind-x86_64
+
 ifeq ($(HOST_OS),Darwin)
     LLVMLibsOptions += -Wl,-all_load
     # set dylib internal version number to llvmCore submission number
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,8 @@
 
 # Set common LLDB build flags.
 CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include 
+CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include/lldb
+CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include/lldb/Expression
 CPP.Flags += -I$(PROJ_OBJ_DIR)/$(LLDB_LEVEL)/include
 CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/../clang/include
 CPP.Flags += -I$(PROJ_OBJ_DIR)/$(LLDB_LEVEL)/../clang/include
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to