[PATCH] D24496: [ELF] - Implemented rpath-link command line option.

Eric van Gyzen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 13 09:15:06 PDT 2016


vangyzen added a subscriber: vangyzen.
vangyzen added a comment.

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


https://reviews.llvm.org/D24496





More information about the llvm-commits mailing list