Link LLDB with -latomic on powerpcspe (Closes: #872267)

This commit is contained in:
Sylvestre Ledru 2017-08-16 07:58:11 +00:00
parent 6395fd3a3b
commit aee6ae513e
2 changed files with 4 additions and 2 deletions

1
debian/changelog vendored
View File

@ -2,6 +2,7 @@ llvm-toolchain-4.0 (1:4.0.1-2) unstable; urgency=medium
* Rebuild with gcc 7 to fix a relocation error (Closes: #866354)
* ld.lld manpage wasn't installed
* Link LLDB with -latomic on powerpcspe (Closes: #872267)
[ Katsuhiko Nishimra ]
* Ensure /usr/bin/g++-$(GCC_VERSION) exists (Closes: #871591)

View File

@ -8,13 +8,14 @@ Last-Update: 2016-07-27
--- a/lldb/cmake/LLDBDependencies.cmake
+++ b/lldb/cmake/LLDBDependencies.cmake
@@ -185,6 +185,12 @@ if (LLVM_BUILD_STATIC)
@@ -185,6 +185,13 @@ if (LLVM_BUILD_STATIC)
endif()
endif()
+if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips" OR
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mipsel" OR
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64el")
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64el" OR
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "powerpcspe")
+ list(APPEND LLDB_SYSTEM_LIBS atomic)
+endif()
+