forked from OSchip/llvm-project
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
2edea847fc
commit
36eebb51f2
|
@ -239,9 +239,11 @@ GenerateNative(const std::string &OutputFilename,
|
||||||
// Add in the libraries to link.
|
// Add in the libraries to link.
|
||||||
std::vector<std::string> Libs(Libraries);
|
std::vector<std::string> Libs(Libraries);
|
||||||
for (unsigned index = 0; index < Libs.size(); index++) {
|
for (unsigned index = 0; index < Libs.size(); index++) {
|
||||||
|
if (Libs[index] != "crtend") {
|
||||||
Libs[index] = "-l" + Libs[index];
|
Libs[index] = "-l" + Libs[index];
|
||||||
cmd.push_back(Libs[index].c_str());
|
cmd.push_back(Libs[index].c_str());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cmd.push_back(NULL);
|
cmd.push_back(NULL);
|
||||||
|
|
||||||
// Run the compiler to assembly and link together the program.
|
// Run the compiler to assembly and link together the program.
|
||||||
|
|
Loading…
Reference in New Issue