diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-12-29 13:40:27 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-12-29 13:40:27 +0300 |
commit | df36a469d77312f6dc0dccf08252542c16cf3308 (patch) | |
tree | c7089deec82cde1a5ac416aff1daadb097225ba3 /debian/patches/lldb-link-atomic-cmake.patch | |
download | llvm-toolchain-3.8-df36a469d77312f6dc0dccf08252542c16cf3308.tar.gz |
llvm-toolchain-3.8 (1:3.8.1-16)debian/3.8.1-16
Diffstat (limited to 'debian/patches/lldb-link-atomic-cmake.patch')
-rw-r--r-- | debian/patches/lldb-link-atomic-cmake.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/lldb-link-atomic-cmake.patch b/debian/patches/lldb-link-atomic-cmake.patch new file mode 100644 index 0000000..dced0f0 --- /dev/null +++ b/debian/patches/lldb-link-atomic-cmake.patch @@ -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 |