[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp

John Criswell criswell at cs.uiuc.edu
Mon Jan 26 17:52:01 PST 2004


Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.17 -> 1.18

---
Log message:

Fixed PR#197.  The libcrtend library is removed from the library linking list
when creating native executables.



---
Diffs of the changes:  (+4 -2)

Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.17 llvm/tools/gccld/GenerateCode.cpp:1.18
--- llvm/tools/gccld/GenerateCode.cpp:1.17	Tue Jan 13 21:39:46 2004
+++ llvm/tools/gccld/GenerateCode.cpp	Mon Jan 26 17:51:10 2004
@@ -239,8 +239,10 @@
   // 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);
 





More information about the llvm-commits mailing list