mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
If linking a library, do not link other libraries, like libc, into it!
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
This commit is contained in:
parent
1edcb0939c
commit
fd35c6417d
@ -234,7 +234,10 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
// Link in all of the files
|
// Link in all of the files
|
||||||
if (LinkFiles(argv[0], Composite.get(), InputFilenames, Verbose))
|
if (LinkFiles(argv[0], Composite.get(), InputFilenames, Verbose))
|
||||||
return 1; // Error already printed
|
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...
|
// Link in all of the libraries next...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user