D118493 added -fno-openmp-implicit-rpath and made it the default, with an
argument that it convenients systems installing the toolchain at a non-standard
location.
I'd argue that such systems should specify -Wl,-rpath explicitly or in a Clang
configuration file. libc++, libc++abi, libunwind, and compiler-rt don't add the
extra DT_RUNPATH, it's weird for openmp to diverge. Some build systems want to
handle DT_RUNPATH themselves (e.g. CMAKE_INSTALL_RPATH). Some distributions
(e.g. Fedora) have policies against DT_RUNPATH and this change is causing
trouble.
No test: the test was removed by d14897c7dad8c05c003bada019c0b573ace63a1a.
I am wondering whether this option can be aliased to --offload-add-rpath, which seems to have the same purpose. (https://reviews.llvm.org/D136854)