mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 00:10:52 +00:00
14 lines
437 B
Diff
14 lines
437 B
Diff
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
|
|
@@ -1060,7 +1060,10 @@
|
|
|
|
switch (Type) {
|
|
case ToolChain::CST_Libcxx:
|
|
- CmdArgs.push_back("-lc++");
|
|
+ if (getTriple().isWindowsGNUEnvironment())
|
|
+ CmdArgs.push_back("-lc++");
|
|
+ else
|
|
+ CmdArgs.push_back("-lc++_shared");
|
|
if (Args.hasArg(options::OPT_fexperimental_library))
|
|
CmdArgs.push_back("-lc++experimental");
|
|
break;
|