Adam Treat
2005-Feb-26 23:10 UTC
[LLVMdev] Patch to make gccld link natively, revised and extended... again :)
Here is the latest version of the native linker patch. This differs from the previous patch in one major way... It no longer takes the crude hack of screening for 'llvm' in the -L path. Instead, gccld now actively screens for -L paths that contain bytecode shared libraries or true llvm bytecode archives. Those -L paths that do contain them are omitted from the call to the system linker. This should resolve http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=525 We can not just issue an error when the user feeds an -L path to the llvm-g++ compiler, because llvm-g++ _itself_ appends it's lib directories to the call to gccld. The result is that llvm-g++'s bytecode archive files (see libstdc++.a and libc.a) are included in _any_ call to gccld by llvm-g++. Hopefully this is the correct fix once and for all. Thanks, Adam Treat -------------- next part -------------- A non-text attachment was scrubbed... Name: gccld_native_linker.diff.gz Type: application/x-gzip Size: 3282 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050226/25edfe0d/attachment.bin>
Seemingly Similar Threads
- [LLVMdev] Revised patch to make gccld link native .so's
- [LLVMdev] [patch] gccld not passing -export-dynamic to gcc for link
- [LLVMdev] [patch] gccld not passing -export-dynamic to gcc for link
- [LLVMdev] Patch to make gccld link native .so's, -rpath, -soname, and various assorted fixes
- [LLVMdev] question about gccld and external libraries