pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/lldb/patches lldb: add patches to fix building o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b268ee0f87f
branches:  trunk
changeset: 327239:0b268ee0f87f
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Dec 23 00:14:08 2018 +0000

description:
lldb: add patches to fix building on Darwin

diffstat:

 devel/lldb/patches/patch-source_API_CMakeLists.txt  |  17 +++++++++++++++
 devel/lldb/patches/patch-source_Host_CMakeLists.txt |  23 +++++++++++++++++++++
 2 files changed, 40 insertions(+), 0 deletions(-)

diffs (48 lines):

diff -r 471d9817d52c -r 0b268ee0f87f devel/lldb/patches/patch-source_API_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lldb/patches/patch-source_API_CMakeLists.txt        Sun Dec 23 00:14:08 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-source_API_CMakeLists.txt,v 1.1 2018/12/23 00:14:08 adam Exp $
+
+Fix finding libxml2's includes.
+
+--- source/API/CMakeLists.txt.orig     2018-12-22 21:06:11.000000000 +0000
++++ source/API/CMakeLists.txt
+@@ -4,6 +4,10 @@ endif()
+ 
+ get_property(LLDB_ALL_PLUGINS GLOBAL PROPERTY LLDB_PLUGINS)
+ 
++if (LIBXML2_FOUND)
++  include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
++endif()
++
+ add_lldb_library(liblldb SHARED
+   SBAddress.cpp
+   SBAttachInfo.cpp
diff -r 471d9817d52c -r 0b268ee0f87f devel/lldb/patches/patch-source_Host_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lldb/patches/patch-source_Host_CMakeLists.txt       Sun Dec 23 00:14:08 2018 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-source_Host_CMakeLists.txt,v 1.1 2018/12/23 00:14:08 adam Exp $
+
+On Darwin, also use libxml2 provided by PkgSrc.
+
+--- source/Host/CMakeLists.txt.orig    2018-12-22 21:03:37.000000000 +0000
++++ source/Host/CMakeLists.txt
+@@ -145,13 +145,9 @@ set(EXTRA_LIBS)
+ if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
+   list(APPEND EXTRA_LIBS kvm)
+ endif ()
+-if (APPLE)
+-  list(APPEND EXTRA_LIBS xml2)
+-else ()
+-  if (LIBXML2_FOUND)
+-    list(APPEND EXTRA_LIBS ${LIBXML2_LIBRARIES})
+-  endif()
+-endif ()
++if (LIBXML2_FOUND)
++  list(APPEND EXTRA_LIBS ${LIBXML2_LIBRARIES})
++endif()
+ if (HAVE_LIBDL)
+   list(APPEND EXTRA_LIBS ${CMAKE_DL_LIBS})
+ endif()



Home | Main Index | Thread Index | Old Index