2020-09-24 09:47:23 +02:00
|
|
|
diff --git a/tools/clang/lib/Driver/ToolChain.cpp b/tools/clang/lib/Driver/ToolChain.cpp
|
|
|
|
index 469ef62f1a9d..218f5af748f4 100644
|
|
|
|
--- a/tools/clang/lib/Driver/ToolChain.cpp
|
|
|
|
+++ b/tools/clang/lib/Driver/ToolChain.cpp
|
|
|
|
@@ -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:
|