projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1edcb09
)
If linking a library, do not link other libraries, like libc, into it!
author
Chris Lattner
<sabre@nondot.org>
Mon, 3 Nov 2003 17:27:17 +0000
(17:27 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 3 Nov 2003 17:27:17 +0000
(17:27 +0000)
This fixes lots of annoying warnings and error messages
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9677
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/gccld/gccld.cpp
patch
|
blob
|
history
diff --git
a/tools/gccld/gccld.cpp
b/tools/gccld/gccld.cpp
index a53383cfb1d92c565e38b8c0a933308877e5c363..1adf08e4c9e587544445a4143bd759ec35af2950 100644
(file)
--- a/
tools/gccld/gccld.cpp
+++ b/
tools/gccld/gccld.cpp
@@
-234,7
+234,10
@@
int main(int argc, char **argv, char **envp) {
// 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...