[PATCH] D147666: [OPENMP] Adds <install_path>/lib to rpath to avoid need to set LD_LIBRARY_PATH to find plugins.
Greg Rodgers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 24 09:33:54 PDT 2023
gregrodgers abandoned this revision.
gregrodgers added a comment.
Its ugly, but to avoid requirement to set LD_LIBRARY_PATH for end-users who may need LD_LIBRARY_PATH for their own application, we will modify the compiler installation with these bash commands where _INSTALL_DIR is the installation directory.
echo "-Wl,-rpath=${_INSTALL_DIR}/lib" > ${_INSTALL_DIR}/bin/rpath.cfg
echo "-L${_INSTALL_DIR}/lib" >> ${_INSTALL_DIR}/bin/rpath.cfg
ln -sf rpath.cfg ${_INSTALL_DIR}/bin/clang++.cfg
ln -sf rpath.cfg ${_INSTALL_DIR}/bin/clang.cfg
ln -sf rpath.cfg ${_INSTALL_DIR}/bin/flang.cfg
ln -sf rpath.cfg ${_INSTALL_DIR}/bin/flang-new.cfg
My apologies to linux distro packaging teams.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147666/new/
https://reviews.llvm.org/D147666
More information about the cfe-commits
mailing list