From 82763da44adb18e5664ac6cd78b304ca92e73fd0 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 22 Dec 2013 14:55:23 +0000 Subject: [PATCH] Only link against latomic under mips* --- debian/patches/lldb-link-atomic.diff | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/patches/lldb-link-atomic.diff b/debian/patches/lldb-link-atomic.diff index 3bfe368b..ebf29f89 100644 --- a/debian/patches/lldb-link-atomic.diff +++ b/debian/patches/lldb-link-atomic.diff @@ -5,12 +5,14 @@ Last-Update: 2013-08-21 --- llvm-toolchain-3.3-3.3.orig/lldb/lib/Makefile +++ llvm-toolchain-3.3-3.3/lldb/lib/Makefile -@@ -140,6 +140,8 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), L +@@ -140,6 +140,10 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), L 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