2020-12-17 17:16:26 +01:00
|
|
|
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
|
2020-09-24 09:47:23 +02:00
|
|
|
index 469ef62f1a9d..218f5af748f4 100644
|
2020-12-17 17:16:26 +01:00
|
|
|
--- a/clang/lib/Driver/ToolChain.cpp
|
|
|
|
+++ b/clang/lib/Driver/ToolChain.cpp
|
2020-09-24 09:47:23 +02:00
|
|
|
@@ -374,6 +374,6 @@ StringRef ToolChain::getOSLibName() const {
|
|
|
|
case llvm::Triple::Solaris:
|
|
|
|
return "sunos";
|
|
|
|
default:
|
|
|
|
- return getOS();
|
|
|
|
+ return Triple.isAndroid() ? "android":getOS();
|
|
|
|
}
|
|
|
|
}
|
2017-07-14 00:23:37 +02:00
|
|
|
@@ -632,7 +632,7 @@
|
|
|
|
|
|
|
|
switch (Type) {
|
|
|
|
case ToolChain::CST_Libcxx:
|
|
|
|
- CmdArgs.push_back("-lc++");
|
|
|
|
+ CmdArgs.push_back("-lc++_shared");
|
2016-05-02 20:46:39 +02:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ToolChain::CST_Libstdcxx:
|