Files
termux-packages/packages/rust/0003-link-with-libc++_shared.patch
2024-03-27 03:37:02 +00: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"