Description: Link lldb with -latomic to get GCC atomic helpers Author: Adam Conrad 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