fix an lldb linking issue

This commit is contained in:
Sylvestre Ledru 2015-08-03 10:37:03 +00:00
parent 31b2f8d473
commit 59fec857d5
2 changed files with 83 additions and 0 deletions

82
debian/patches/lldb-bug-24322.diff vendored Normal file
View File

@ -0,0 +1,82 @@
Index: llvm-toolchain-snapshot_3.8~svn243867/lldb/source/Plugins/Makefile
===================================================================
--- llvm-toolchain-snapshot_3.8~svn243867.orig/lldb/source/Plugins/Makefile
+++ llvm-toolchain-snapshot_3.8~svn243867/lldb/source/Plugins/Makefile
@@ -42,12 +42,14 @@ PARALLEL_DIRS += SymbolVendor/MacOSX
PARALLEL_DIRS += Process/mach-core
PARALLEL_DIRS += Process/elf-core
PARALLEL_DIRS += JITLoader/GDB
+PARALLEL_DIRS += ScriptInterpreter/Python ScriptInterpreter/None
endif
ifeq ($(HOST_OS),Linux)
PARALLEL_DIRS += Process/Linux Process/POSIX
PARALLEL_DIRS += Process/elf-core
PARALLEL_DIRS += JITLoader/GDB
+PARALLEL_DIRS += ScriptInterpreter/Python ScriptInterpreter/None
endif
ifeq ($(HOST_OS),MingW)
Index: llvm-toolchain-snapshot_3.8~svn243867/lldb/source/Plugins/ScriptInterpreter/None/Makefile
===================================================================
--- /dev/null
+++ llvm-toolchain-snapshot_3.8~svn243867/lldb/source/Plugins/ScriptInterpreter/None/Makefile
@@ -0,0 +1,14 @@
+##===- source/Plugins/ScriptInterpreter/None/Makefile ------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LLDB_LEVEL := ../../../..
+LIBRARYNAME := lldbPluginScriptInterpreterNone
+BUILD_ARCHIVE = 1
+
+include $(LLDB_LEVEL)/Makefile
Index: llvm-toolchain-snapshot_3.8~svn243867/lldb/source/Plugins/ScriptInterpreter/Python/Makefile
===================================================================
--- /dev/null
+++ llvm-toolchain-snapshot_3.8~svn243867/lldb/source/Plugins/ScriptInterpreter/Python/Makefile
@@ -0,0 +1,14 @@
+##===- source/Plugins/ScriptInterpreter/Python/Makefile ------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LLDB_LEVEL := ../../../..
+LIBRARYNAME := lldbPluginScriptInterpreterPython
+BUILD_ARCHIVE = 1
+
+include $(LLDB_LEVEL)/Makefile
Index: llvm-toolchain-snapshot_3.8~svn243867/lldb/lib/Makefile
===================================================================
--- llvm-toolchain-snapshot_3.8~svn243867.orig/lldb/lib/Makefile
+++ llvm-toolchain-snapshot_3.8~svn243867/lldb/lib/Makefile
@@ -120,14 +120,18 @@ ifeq ($(HOST_OS),Darwin)
lldbPluginProcessDarwin.a \
lldbPluginProcessMachCore.a \
lldbPluginProcessElfCore.a \
- lldbPluginJITLoaderGDB.a
+ lldbPluginJITLoaderGDB.a \
+ lldbPluginScriptInterpreterNone.a \
+ lldbPluginScriptInterpreterPython.a
endif
ifeq ($(HOST_OS),Linux)
USEDLIBS += lldbPluginProcessLinux.a \
lldbPluginProcessPOSIX.a \
lldbPluginProcessElfCore.a \
- lldbPluginJITLoaderGDB.a
+ lldbPluginJITLoaderGDB.a \
+ lldbPluginScriptInterpreterNone.a \
+ lldbPluginScriptInterpreterPython.a
endif
ifeq ($(HOST_OS),MingW)

View File

@ -40,3 +40,4 @@ compiler-rt-i586.diff
clang-analyzer-force-version.diff clang-analyzer-force-version.diff
locale-issue-ld.diff locale-issue-ld.diff
lldb-bug-24322.diff