summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0006-clang-Define-releative-gcc-installation-dir.patch
blob: cbc0d19729061a66082851ba25f6401e5d4ed87a (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
From 9a91d0b82ba48a9e2f634197809a1323298ef285 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 6/7] 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>
---
 lib/Driver/ToolChains/Gnu.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Driver/ToolChains/Gnu.cpp b/lib/Driver/ToolChains/Gnu.cpp
index bbe7845765..692385ff27 100644
--- a/lib/Driver/ToolChains/Gnu.cpp
+++ b/lib/Driver/ToolChains/Gnu.cpp
@@ -2070,6 +2070,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
 
     // Debian puts cross-compilers in gcc-cross.
     {"gcc-cross/" + CandidateTriple.str(), "../..", true},
+    {"/" + 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
-- 
2.17.0