lldb-link-atomic
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 12 Mar 2017 08:49:18 +0000 (08:49 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 12 Mar 2017 08:49:18 +0000 (08:49 +0000)
===================================================================

Gbp-Pq: Name lldb-link-atomic.diff

lldb/lib/Makefile

index ff10216b33960e2c9f51de09799ecb56e393a215..02959354a41ec493391109948e9d105a1542c380 100644 (file)
@@ -192,6 +192,10 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
     # Link in python
     LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt -ledit -lncurses -lpanel -lpthread
     LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
+    ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel powerpc powerpcspe))
+     # Link GCC atomic helper library
+     LLVMLibsOptions += -latomic
+    endif
 endif
 
 ifeq ($(HOST_OS),FreeBSD)