fix the path to ld.so for darwin/ppc, resolving PR9677. Patch

by Jeremy Huddleston!

llvm-svn: 129299
This commit is contained in:
Chris Lattner 2011-04-11 21:15:37 +00:00
parent f79d5365de
commit 20b90d061a

View File

@ -3724,9 +3724,9 @@ void linuxtools::Link::ConstructJob(Compilation &C, const JobAction &JA,
ToolChain.getArch() == llvm::Triple::thumb)
CmdArgs.push_back("/lib/ld-linux.so.3");
else if (ToolChain.getArch() == llvm::Triple::ppc)
CmdArgs.push_back("/lib/ld.so");
CmdArgs.push_back("/lib/ld.so.1");
else if (ToolChain.getArch() == llvm::Triple::ppc64)
CmdArgs.push_back("/lib64/ld64.so");
CmdArgs.push_back("/lib64/ld64.so.1");
else
CmdArgs.push_back("/lib64/ld-linux-x86-64.so.2");
}