[PATCH] D53015: [LLD] [MinGW] Pass libpath to the COFF linker

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 9 08:29:35 PDT 2018


mstorsjo added a comment.

In https://reviews.llvm.org/D53015#1258758, @ruiu wrote:

> If you do this, do you still have to search library files in MinGW driver?


Yes, we still need to keep it there.

In order to move all of that into the COFF linker side, we'd need to extend the lld-link command line interface quite a bit. The MinGW linker takes -lfoo, which can either mean libfoo.a or libfoo.dll.a (unless the -Bstatic flag was passed). As lld-link today only takes full filenames, this doesn't fit right away as is. And we'd need the static flag of course. And the static flag isn't global but only affects any later -lfoo up until the next -Bdynamic.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D53015





More information about the llvm-commits mailing list