[MinGW] Pass libpath to the COFF linker
authorMartin Storsjo <martin@martin.st>
Wed, 10 Oct 2018 09:00:03 +0000 (09:00 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 10 Oct 2018 09:00:03 +0000 (09:00 +0000)
commit803b37ad5de61614a382c72bb7b3a69776a4fb82
tree59eafcbfa4dc7b4eb1c467023aa7124788acffe3
parent60b6f140cfc75fe4c519c2e3f2eb8a1d1278e1f6
[MinGW] Pass libpath to the COFF linker

This is necessary for handling defaultlib directives embedded in
object files, unless they use an absolute path.

Differential Revision: https://reviews.llvm.org/D53015

llvm-svn: 344123
lld/MinGW/Driver.cpp
lld/test/MinGW/driver.test