summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-01-28 11:35:50 -0800
committerKhem Raj <raj.khem@gmail.com>2021-03-01 11:12:14 -0800
commit596e0e7c195378a1b02e6ebcad0fb98054230e28 (patch)
treea1ac857fee80a85b588a9b9653e4a9a54e4e79c8 /recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
parent6611405d0e50724afe4b6ee1d6e80417a31721d6 (diff)
downloadmeta-clang-596e0e7c195378a1b02e6ebcad0fb98054230e28.tar.gz
clang: Update to 12.0.0 RC2
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch')
-rw-r--r--recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch13
1 files changed, 5 insertions, 8 deletions
diff --git a/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch b/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
index a57ffb3..4c450ca 100644
--- a/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
+++ b/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
@@ -1,8 +1,8 @@
1From a1d6f91cac4f24890081be8f594eef7ef09919e3 Mon Sep 17 00:00:00 2001 1From e5457a0d477d7a0f7fffef56670450744881554f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Jul 2019 22:51:39 -0700 3Date: Wed, 31 Jul 2019 22:51:39 -0700
4Subject: [PATCH 16/24] clang: Add -lpthread and -ldl along with -lunwind for 4Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static
5 static linking 5 linking
6 6
7When doing static liking with --unwindlib=libunwind -static we encounter 7When doing static liking with --unwindlib=libunwind -static we encounter
8undefined symbols 8undefined symbols
@@ -20,10 +20,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 1 file changed, 6 insertions(+), 1 deletion(-) 20 1 file changed, 6 insertions(+), 1 deletion(-)
21 21
22diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp 22diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
23index 1cac5a0822a..29fe4a33a14 100644 23index bcaea71dca94..95b806e29ef2 100644
24--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp 24--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
25+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp 25+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
26@@ -1275,8 +1275,13 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D, 26@@ -1423,8 +1423,13 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D,
27 // Let the linker choose between libunwind.dll.a and libunwind.a 27 // Let the linker choose between libunwind.dll.a and libunwind.a
28 // depending on what's available, and depending on the -static flag 28 // depending on what's available, and depending on the -static flag
29 CmdArgs.push_back("-lunwind"); 29 CmdArgs.push_back("-lunwind");
@@ -38,6 +38,3 @@ index 1cac5a0822a..29fe4a33a14 100644
38 break; 38 break;
39 } 39 }
40 40
41--
422.27.0
43