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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits