diff --git a/debian/changelog b/debian/changelog index 4f0895b5..09fbb066 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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) diff --git a/debian/patches/lldb-link-atomic-cmake.patch b/debian/patches/lldb-link-atomic-cmake.patch index 4950df32..846e4bcc 100644 --- a/debian/patches/lldb-link-atomic-cmake.patch +++ b/debian/patches/lldb-link-atomic-cmake.patch @@ -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() +