[PATCH] D24496: [ELF] - Implemented rpath-link command line option.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 10:30:07 PDT 2016
grimar added a comment.
In https://reviews.llvm.org/D24496#541325, @vangyzen wrote:
> This would probably work in practice, but the ld.bfd implementation is a bit more nuanced. Specifically, ld.bfd searches the -L path for libraries named on the command line, and it searches the rpath-link path for libraries required by those libraries. That is, it does //not// search the -L path for libraries needed by libraries. In my humble opinion, this doesn't make much sense and is slightly annoying for the end user. However, if lld wants to be command-line-compatible with ld.bfd, which I think would be wise, it should probably follow suit.
>
> The ld.bfd documentation has a fairly detailed description:
>
> https://sourceware.org/binutils/docs-2.27/ld/Options.html#index-link_002dtime-runtime-library-search-path-232
Yes, that is what I mean when wrote description I think. There is no much sence to split searching I believe.
In lld we always follow the easiest path at first and I do not want to overcomplicate feature until there are reasons to do that.
https://reviews.llvm.org/D24496
More information about the llvm-commits
mailing list