diff options
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.patch | 13 |
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 @@ | |||
1 | From a1d6f91cac4f24890081be8f594eef7ef09919e3 Mon Sep 17 00:00:00 2001 | 1 | From e5457a0d477d7a0f7fffef56670450744881554f Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 31 Jul 2019 22:51:39 -0700 | 3 | Date: Wed, 31 Jul 2019 22:51:39 -0700 |
4 | Subject: [PATCH 16/24] clang: Add -lpthread and -ldl along with -lunwind for | 4 | Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static |
5 | static linking | 5 | linking |
6 | 6 | ||
7 | When doing static liking with --unwindlib=libunwind -static we encounter | 7 | When doing static liking with --unwindlib=libunwind -static we encounter |
8 | undefined symbols | 8 | undefined 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 | ||
22 | diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp | 22 | diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
23 | index 1cac5a0822a..29fe4a33a14 100644 | 23 | index 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 | -- | ||
42 | 2.27.0 | ||
43 | |||