Hopefully the mips* build is fixed

This commit is contained in:
Gianfranco Costamagna 2016-07-27 10:11:27 +00:00
parent da042a5363
commit b53344eb7f
3 changed files with 21 additions and 0 deletions

1
debian/changelog vendored
View File

@ -2,6 +2,7 @@ llvm-toolchain-3.8 (1:3.8.1-5) UNRELEASED; urgency=medium
* Try to fix mips64el build, by enabling the same * Try to fix mips64el build, by enabling the same
packages as the mips and mipsel versions packages as the mips and mipsel versions
* Link mips* with latomic.
* Disable lldb on sparc64 (Closes: #832371) * Disable lldb on sparc64 (Closes: #832371)
* Hopefully fix the FTBFS on armel * Hopefully fix the FTBFS on armel

View File

@ -0,0 +1,19 @@
Description: Link with -latomic when mips* processor is detected
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2016-07-27
--- llvm-toolchain-3.8-3.8.1.orig/lldb/cmake/LLDBDependencies.cmake
+++ llvm-toolchain-3.8-3.8.1/lldb/cmake/LLDBDependencies.cmake
@@ -172,6 +172,12 @@ 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")
+ list(APPEND LLDB_SYSTEM_LIBS atomic)
+endif()
+
set( LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
interpreter

View File

@ -41,3 +41,4 @@ llvm25468-lldb-swig-format-security.diff
llvm26003-sanitizer-check-env.diff llvm26003-sanitizer-check-env.diff
scan-view-fix-path.diff scan-view-fix-path.diff
mips-fpxx-enable.diff mips-fpxx-enable.diff
lldb-link-atomic-cmake.patch