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~svn199197/lldb/lib/Makefile =================================================================== --- llvm-toolchain-snapshot_3.5~svn199197.orig/lldb/lib/Makefile 2014-01-14 11:31:38.652867733 +0100 +++ llvm-toolchain-snapshot_3.5~svn199197/lldb/lib/Makefile 2014-01-14 11:31:38.652867733 +0100 @@ -149,6 +149,10 @@ LLVMLibsOptions += -Wl,--no-undefined # Link in python LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt + ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel)) + # Link GCC atomic helper library + LLVMLibsOptions += -latomic + endif LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT) endif