From 2dfc688d82a570bdcb8b512f91122e388db0684a 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 802d2e4e4f..3b5c1f860e 100644
--- a/lib/Driver/ToolChains/Gnu.cpp
+++ b/lib/Driver/ToolChains/Gnu.cpp
@@ -2071,6 +2071,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.16.1

