[PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 4 10:33:08 PST 2019


ruiu added a comment.

In D56215#1345880 <https://reviews.llvm.org/D56215#1345880>, @krytarowski wrote:

> In D56215#1345845 <https://reviews.llvm.org/D56215#1345845>, @ruiu wrote:
>
> > Not sure what I understand the point, but as to make lld work on/for NetBSD, I wonder if you can just add -L<path> to the command line in the compiler driver. Isn't a NetBSD triple passed to the compiler driver? If so, I wonder if you can add a few extra options when invoking the linker.
>
>
> This describes the original patch of passing flags from compiler driver and breaks GNU ld compat. Joerg expects to pass no extra `-L<path>` or `--disable-new-dtags` options, treating lld as a drop-in replacement for GNU ld.


I don't think you would lose anything by passing `-L<path>` and `--disable-new-dtags` from compiler driver. These flags wouldn't do any harm to GNU linkers.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56215/new/

https://reviews.llvm.org/D56215





More information about the llvm-commits mailing list