summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch15
1 files changed, 10 insertions, 5 deletions
diff --git a/recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch b/recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch
index d5c67d1..9db055c 100644
--- a/recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch
+++ b/recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch
@@ -1,4 +1,4 @@
1From 4b5386fe67b03923b7ce25c066e6f6220a32eb44 Mon Sep 17 00:00:00 2001 1From ee4557fd25d6d752eeb25d28b197ad8364c554d5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 25 Jan 2019 14:39:04 -0800 3Date: Fri, 25 Jan 2019 14:39:04 -0800
4Subject: [PATCH] clang: Append libunwind to compiler-rt for linking 4Subject: [PATCH] clang: Append libunwind to compiler-rt for linking
@@ -8,16 +8,21 @@ too, and they are missing in compiler-rt but provided by llvm libunwind
8 8
9Signed-off-by: Khem Raj <raj.khem@gmail.com> 9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10--- 10---
11 clang/lib/Driver/ToolChains/CommonArgs.cpp | 4 ++++ 11 clang/lib/Driver/ToolChains/CommonArgs.cpp | 1 +
12 1 file changed, 4 insertions(+) 12 1 file changed, 1 insertion(+)
13 13
14diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
15index d7e316befa6..d2dd45eeb9a 100644
14--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp 16--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
15+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp 17+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
16@@ -1191,6 +1191,7 @@ void tools::AddRunTimeLibs(const ToolCha 18@@ -1191,6 +1191,7 @@ void tools::AddRunTimeLibs(const ToolChain &TC, const Driver &D,
17 switch (RLT) { 19 switch (RLT) {
18 case ToolChain::RLT_CompilerRT: 20 case ToolChain::RLT_CompilerRT:
19 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins")); 21 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins"));
20+ CmdArgs.push_back(Args.MakeArgString(D.SysRoot + "/usr/lib" "/libunwind.a")); 22+ CmdArgs.push_back(Args.MakeArgString("-l:libunwind.a"));
21 break; 23 break;
22 case ToolChain::RLT_Libgcc: 24 case ToolChain::RLT_Libgcc:
23 // Make sure libgcc is not used under MSVC environment by default 25 // Make sure libgcc is not used under MSVC environment by default
26--
272.20.1
28