From f9a857bf747f17dfffd91345414136c5762743e747deaa30d39b04d5b9c63db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 3 Sep 2015 12:41:33 +0000 Subject: [PATCH] - OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=421 --- lldb-cmake.patch | 17 +++++++++++++---- lldb.spec | 10 ++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/lldb-cmake.patch b/lldb-cmake.patch index 83c6dee..351de8a 100644 --- a/lldb-cmake.patch +++ b/lldb-cmake.patch @@ -1,8 +1,8 @@ Index: lldb-3.7.0.src/source/lldb.cpp =================================================================== ---- lldb-3.7.0.src/source/lldb.cpp +--- lldb-3.7.0.src.orig/source/lldb.cpp +++ lldb-3.7.0.src/source/lldb.cpp -@@ -325,11 +325,7 @@ extern "C" const unsigned char liblldb_c +@@ -21,11 +21,7 @@ extern "C" const unsigned char liblldb_c static const char * GetLLDBRevision() { @@ -16,9 +16,9 @@ Index: lldb-3.7.0.src/source/lldb.cpp static const char * Index: lldb-3.7.0.src/source/Core/IOHandler.cpp =================================================================== ---- lldb-3.7.0.src/source/Core/IOHandler.cpp +--- lldb-3.7.0.src.orig/source/Core/IOHandler.cpp +++ lldb-3.7.0.src/source/Core/IOHandler.cpp -@@ -31,8 +31,8 @@ +@@ -29,8 +29,8 @@ #include "lldb/Target/ThreadPlan.h" #ifndef LLDB_DISABLE_CURSES @@ -29,3 +29,12 @@ Index: lldb-3.7.0.src/source/Core/IOHandler.cpp #endif using namespace lldb; +Index: lldb-3.7.0.src/source/Host/CMakeLists.txt +=================================================================== +--- lldb-3.7.0.src.orig/source/Host/CMakeLists.txt ++++ lldb-3.7.0.src/source/Host/CMakeLists.txt +@@ -134,3 +134,4 @@ else() + endif() + + add_lldb_library(lldbHost ${HOST_SOURCES}) ++target_link_libraries(lldbHost dl pthread) diff --git a/lldb.spec b/lldb.spec index 8f1d4d8..0eb9199 100644 --- a/lldb.spec +++ b/lldb.spec @@ -96,6 +96,14 @@ ninja pushd build DESTDIR=%{buildroot} ninja install +# Fix the lldb.so link +rm %{buildroot}%{py_sitedir}/lldb/_lldb.so +ln -sf %{_libdir}/liblldb.so.%{version} %{buildroot}%{py_sitedir}/lldb/_lldb.so + +# Fix the lib link +rm %{buildroot}%{py_sitedir}/lib +ln -sf %{libdir} %{buildroot}%{py_sitedir}/lib + rm %{buildroot}%{_libdir}/liblldb*.a %post -p /sbin/ldconfig @@ -105,8 +113,10 @@ rm %{buildroot}%{_libdir}/liblldb*.a %files %defattr(-,root,root,-) %{_libdir}/liblldb.so.* +%{_bindir}/argdumper %{_bindir}/lldb* %{py_sitedir}/readline.so +%{py_sitedir}/lib %{py_sitedir}/lldb %files devel