summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch
blob: 92e660c656c5f9d7365c7ae06dbf2bab9c530f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 15fab22ab9478935b30d55de1d871553991bc3ad Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 21 May 2017 15:38:25 -0700
Subject: [PATCH 06/15] clang: Define / releative gcc installation dir

This is required for OE gcc installation to work.
Without this its not able to find the paths for libgcc
and other standard headers and libraries from gcc
installation in OE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 clang/lib/Driver/ToolChains/Gnu.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index c841399193e..468ee821a57 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2280,6 +2280,9 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
       {"gcc-cross/" + CandidateTriple.str(), "../..",
        TargetTriple.getOS() != llvm::Triple::Solaris},
 
+      // OE cross-compilers path structures
+      {"/" + CandidateTriple.str(), "..", true},
+
       // The Freescale PPC SDK has the gcc libraries in
       // <sysroot>/usr/lib/<triple>/x.y.z so have a look there as well. Only do
       // this on Freescale triples, though, since some systems put a *lot* of
-- 
2.20.1