llvm-toolchain/debian/patches/lldb-link-atomic.diff
Sylvestre Ledru d3d9059c38 * Fix the cindex.py declaration (3.3 => 3.5). Closes upstream bug #18365
* Bring back the dependency on gcc 4.8. It breaks the nightly snapshot
    packages and it should be the norm now...

  [ Martin Nowack ]
  * Fixed build directory for llvm-config
  * Add Unittests for running tests for llvm-based projects
  * Install FileCheck and not for testing
2014-02-12 15:53:47 +00:00

22 lines
970 B
Diff

Description: Link lldb with -latomic to get GCC atomic helpers
Author: Adam Conrad <adconrad@ubuntu.com>
Forwarded: no
Last-Update: 2013-08-21
Index: llvm-toolchain-snapshot_3.5~svn200375/lldb/lib/Makefile
===================================================================
--- llvm-toolchain-snapshot_3.5~svn200375.orig/lldb/lib/Makefile 2014-01-29 07:49:00.508714445 -0800
+++ llvm-toolchain-snapshot_3.5~svn200375/lldb/lib/Makefile 2014-01-29 07:49:46.396713007 -0800
@@ -150,6 +150,10 @@
LLVMLibsOptions += -Wl,--no-undefined
# Link in python
LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt -ledit -lncurses -lpanel
+ ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel))
+ ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel powerpc powerpcspe))
+ # Link GCC atomic helper library
+ LLVMLibsOptions += -latomic
+ endif
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif