[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 3 11:28:00 PST 2003
Changes in directory llvm/tools/gccld:
gccld.cpp updated: 1.58 -> 1.59
---
Log message:
If linking a library, do not link other libraries, like libc, into it!
This fixes lots of annoying warnings and error messages
---
Diffs of the changes: (+4 -1)
Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.58 llvm/tools/gccld/gccld.cpp:1.59
--- llvm/tools/gccld/gccld.cpp:1.58 Fri Oct 24 15:00:06 2003
+++ llvm/tools/gccld/gccld.cpp Mon Nov 3 11:27:17 2003
@@ -234,7 +234,10 @@
// Link in all of the files
if (LinkFiles(argv[0], Composite.get(), InputFilenames, Verbose))
return 1; // Error already printed
- LinkLibraries(argv[0], Composite.get(), Libraries, LibPaths, Verbose, Native);
+
+ if (!LinkAsLibrary)
+ LinkLibraries(argv[0], Composite.get(), Libraries, LibPaths,
+ Verbose, Native);
// Link in all of the libraries next...
More information about the llvm-commits
mailing list