[clang] [Driver] [NetBSD] Append -rpath for shared compiler-rt runtimes
authorMichal Gorny <mgorny@gentoo.org>
Wed, 30 Jan 2019 08:20:24 +0000 (08:20 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Wed, 30 Jan 2019 08:20:24 +0000 (08:20 +0000)
commit3a901b47ba00fc38c65f31bf66605d0e4fd40c93
tree498bbbcde8ae6023c5ffb9b252871d5db391a68b
parent11133d2531f392bc44d9baaa6bee78e8e246b5eb
[clang] [Driver] [NetBSD] Append -rpath for shared compiler-rt runtimes

Append appropriate -rpath when using shared compiler-rt runtimes,
e.g. '-fsanitize=address -shared-libasan'.  There's already a similar
logic in CommonArgs.cpp but it uses non-standard arch-suffixed
installation directory while we want our driver to work with standard
installation paths.

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

llvm-svn: 352610
clang/lib/Driver/ToolChains/NetBSD.cpp