summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-05-22 18:38:27 -0700
committerKhem Raj <raj.khem@gmail.com>2017-05-22 18:38:27 -0700
commitc1dbc0aa3bc9cc9e51fa00d9cd07b8ab5acf3ce9 (patch)
tree02e8837f3d9b892ad387da255cef77b5a86d52d2 /recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch
parent2baa00b8a919a1c29c891b900a48239856d01438 (diff)
downloadmeta-clang-c1dbc0aa3bc9cc9e51fa00d9cd07b8ab5acf3ce9.tar.gz
clang/llvm: Move to upcoming 5.0.0 ( trunk ) release
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch')
-rw-r--r--recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch b/recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch
new file mode 100644
index 0000000..473f610
--- /dev/null
+++ b/recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch
@@ -0,0 +1,27 @@
1From b56c57ef523bed20dc9e9beb271667a85cf56478 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 21 May 2017 15:38:25 -0700
4Subject: [PATCH 6/6] clang: Define / releative gcc installation dir
5
6This is required for OE gcc installation to work.
7Without this its not able to find the paths for libgcc
8and other standard headers and libraries from gcc
9installation in OE
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 lib/Driver/ToolChains/Gnu.cpp | 1 +
14 1 file changed, 1 insertion(+)
15
16Index: clang/lib/Driver/ToolChains/Gnu.cpp
17===================================================================
18--- clang.orig/lib/Driver/ToolChains/Gnu.cpp
19+++ clang/lib/Driver/ToolChains/Gnu.cpp
20@@ -2101,6 +2101,7 @@ void Generic_GCC::GCCInstallationDetecto
21
22 // Debian puts cross-compilers in gcc-cross.
23 {"gcc-cross/" + CandidateTriple.str(), "../..", true},
24+ {"/" + CandidateTriple.str(), "..", true},
25
26 // The Freescale PPC SDK has the gcc libraries in
27 // <sysroot>/usr/lib/<triple>/x.y.z so have a look there as well. Only do