lldb-link-atomic
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 23 Dec 2017 22:00:21 +0000 (22:00 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 23 Dec 2017 22:00:21 +0000 (22:00 +0000)
===================================================================

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

lldb/lib/Makefile

index ff10216b33960e2c9f51de09799ecb56e393a215..d475cf6744de5cc6606c43d3f4b428a45f53f490 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), armel mips mipsel powerpc powerpcspe))
+     # Link GCC atomic helper library
+     LLVMLibsOptions += -latomic
+    endif
 endif
 
 ifeq ($(HOST_OS),FreeBSD)