Fix the build wrt to compiler-rt

This commit is contained in:
Sylvestre Ledru 2014-05-16 22:25:01 +00:00
parent d38b476d79
commit c9d8e15322
2 changed files with 14 additions and 0 deletions

13
debian/patches/compiler-rt-path.diff vendored Normal file
View File

@ -0,0 +1,13 @@
Index: llvm-toolchain-snapshot-3.5~svn208979/compiler-rt/make/platform/clang_linux.mk
===================================================================
--- llvm-toolchain-snapshot-3.5~svn208979.orig/compiler-rt/make/platform/clang_linux.mk 2014-05-16 19:13:05.702922367 +0200
+++ llvm-toolchain-snapshot-3.5~svn208979/compiler-rt/make/platform/clang_linux.mk 2014-05-16 19:13:27.551329647 +0200
@@ -11,7 +11,7 @@
# cross compilers). For now, we just find the target architecture of the
# compiler and only define configurations we know that compiler can generate.
CompilerTargetTriple := $(shell \
- LANG=C $(CC) -v 2>&1 | grep 'Target:' | cut -d' ' -f2)
+ LD_LIBRARY_PATH=../build-llvm/Release/lib LANG=C $(CC) -v 2>&1 | grep 'Target:' | cut -d' ' -f2)
ifeq ($(CompilerTargetTriple),)
$(error "unable to infer compiler target triple for $(CC)")
endif

View File

@ -36,3 +36,4 @@ disable-display-PASS-UNSUPPORTED-XFAIL.diff
lldb-link-atomic.diff
fix-llvm-config-obj-src-root.patch
suffixsvn.diff
compiler-rt-path.diff