mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Fixed PR#197. The libcrtend library is removed from the library linking list
when creating native executables. llvm-svn: 10979
This commit is contained in:
parent
0b5166db12
commit
a43fe7d309
@ -239,8 +239,10 @@ GenerateNative(const std::string &OutputFilename,
|
||||
// Add in the libraries to link.
|
||||
std::vector<std::string> Libs(Libraries);
|
||||
for (unsigned index = 0; index < Libs.size(); index++) {
|
||||
Libs[index] = "-l" + Libs[index];
|
||||
cmd.push_back(Libs[index].c_str());
|
||||
if (Libs[index] != "crtend") {
|
||||
Libs[index] = "-l" + Libs[index];
|
||||
cmd.push_back(Libs[index].c_str());
|
||||
}
|
||||
}
|
||||
cmd.push_back(NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user