llvm-toolchain/debian/patches/lldb-link-atomic.diff
Sylvestre Ledru 61e58e71fd * Add more fixes for the HURD port...
* Automatically determine GCC_VERSION and dep:devlibs based on g++ package
  version.
* Automatically determine if -fuse-ld=gold is supported based on binutils
  package version.
* debian/patches/lldb-link-atomic.diff: Link lldb with -latomic to get
  builtin GCC atomic helpers on arches (like powerpc) that need them.
2013-09-03 15:31:30 +00:00

17 lines
562 B
Diff

Description: Link lldb with -latomic to get GCC atomic helpers
Author: Adam Conrad <adconrad@ubuntu.com>
Forwarded: no
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
LLVMLibsOptions += -Wl,--no-undefined
# Link in python
LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt
+ # Link GCC atomic helper library
+ LLVMLibsOptions += -latomic
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif