File lldb-add-pthread-dl-libs.patch of Package llvm4.8052

Index: lldb-4.0.1.src/cmake/modules/LLDBConfig.cmake
===================================================================
--- lldb-4.0.1.src.orig/cmake/modules/LLDBConfig.cmake
+++ lldb-4.0.1.src/cmake/modules/LLDBConfig.cmake
@@ -323,13 +323,9 @@
 
 endif()
 
-if (HAVE_LIBPTHREAD)
-  list(APPEND system_libs pthread)
-endif(HAVE_LIBPTHREAD)
+list(APPEND system_libs pthread)
 
-if (HAVE_LIBDL)
-  list(APPEND system_libs ${CMAKE_DL_LIBS})
-endif()
+list(APPEND system_libs ${CMAKE_DL_LIBS})
 
 if (CMAKE_SYSTEM_NAME MATCHES "Linux")
     # Check for syscall used by lldb-server on linux.
openSUSE Build Service is sponsored by