mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
19 lines
614 B
Diff
19 lines
614 B
Diff
"purity" patch for 5.0
|
|
|
|
--- a/lib/Driver/ToolChains/Gnu.cpp
|
|
+++ b/lib/Driver/ToolChains/Gnu.cpp
|
|
@@ -402,13 +402,6 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|
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");
|