mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 23:22:30 +00:00
Only link against latomic under mips*
This commit is contained in:
parent
e2910dc332
commit
82763da44a
4
debian/patches/lldb-link-atomic.diff
vendored
4
debian/patches/lldb-link-atomic.diff
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user