2019-10-21 09:39:03 +01:00
|
|
|
"purity" patch for 5.0
|
2018-03-30 08:09:26 +01:00
|
|
|
|
|
|
|
--- a/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
+++ b/lib/Driver/ToolChains/Gnu.cpp
|
2019-04-29 16:50:46 +01:00
|
|
|
@@ -380,13 +380,6 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
2017-01-24 14:23:15 +00:00
|
|
|
if (!Args.hasArg(options::OPT_static)) {
|
|
|
|
if (Args.hasArg(options::OPT_rdynamic))
|
|
|
|
CmdArgs.push_back("-export-dynamic");
|
|
|
|
-
|
|
|
|
- if (!Args.hasArg(options::OPT_shared)) {
|
|
|
|
- const std::string Loader =
|
|
|
|
- D.DyldPrefix + ToolChain.getDynamicLinker(Args);
|
|
|
|
- CmdArgs.push_back("-dynamic-linker");
|
|
|
|
- CmdArgs.push_back(Args.MakeArgString(Loader));
|
|
|
|
- }
|
|
|
|
}
|
|
|
|
|
|
|
|
CmdArgs.push_back("-o");
|