0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 15:47:26 +00:00
termux-packages/packages/rust/0003-link-with-libc++_shared.patch
2024-03-27 11:12:06 +08:00

12 lines
379 B
Diff

--- a/compiler/rustc_llvm/build.rs
+++ b/compiler/rustc_llvm/build.rs
@@ -350,6 +350,8 @@
|| target.contains("aix")
{
"c++"
+ } else if target.contains("android") {
+ "c++_shared"
} else if target.contains("netbsd") && llvm_static_stdcpp.is_some() {
// NetBSD uses a separate library when relocation is required
"stdc++_p"