diff options
Diffstat (limited to 'recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch')
-rw-r--r-- | recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch | 23 |
1 files changed, 23 insertions, 0 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 new file mode 100644 index 0000000..d5c67d1 --- /dev/null +++ b/recipes-devtools/clang/clang/0016-clang-Append-libunwind-to-compiler-rt-for-linking.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From 4b5386fe67b03923b7ce25c066e6f6220a32eb44 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 25 Jan 2019 14:39:04 -0800 | ||
4 | Subject: [PATCH] clang: Append libunwind to compiler-rt for linking | ||
5 | |||
6 | Some packages which use libgcc tend to use low level unwind functions | ||
7 | too, and they are missing in compiler-rt but provided by llvm libunwind | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | clang/lib/Driver/ToolChains/CommonArgs.cpp | 4 ++++ | ||
12 | 1 file changed, 4 insertions(+) | ||
13 | |||
14 | --- a/clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
15 | +++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
16 | @@ -1191,6 +1191,7 @@ void tools::AddRunTimeLibs(const ToolCha | ||
17 | switch (RLT) { | ||
18 | case ToolChain::RLT_CompilerRT: | ||
19 | CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins")); | ||
20 | + CmdArgs.push_back(Args.MakeArgString(D.SysRoot + "/usr/lib" "/libunwind.a")); | ||
21 | break; | ||
22 | case ToolChain::RLT_Libgcc: | ||
23 | // Make sure libgcc is not used under MSVC environment by default | ||