<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58216>58216</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Please backport llvm_shlib_dir fix to use_lld() to 15.x
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mgorny
      </td>
    </tr>
</table>

<pre>
    ```
commit a64ea173d7b152678780d5443407d1071277642b (origin/main, main)
Author: Michał Górny <mgorny@gentoo.org>
Date:   2022-10-06 16:41:04 +0200

    [llvm] [lit] Fix use_lld() to respect llvm_shlib_dir
    
    Fix the use_lld() to use llvm_shlib_dir similarly to how use_clang()
    does it.  This fixes use_lld() wrongly prepending llvm_libs_dir,
    i.e. the directory with system-installed LLVM libraries before
    the build directory of standalone build.  As a result, the shared
    libraries from an earlier version of clang end up being used instead of
    the newly built version when running the test suite prior to installing.

    [...]
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtVMFu2zAM_Rr7QsSQZVt2Dz6k6bpLC-ww7FrIEWNrk6VAkpvm70c5WbN2AwSJMsnHR4r04NS5zwS7LvaQse3ezbOOIEWNsmwr1Q5lw0XbtR1TTV1XNWtVydqSt62o-QAZ75zXo7YZf5xlOnZwOe8ugNslTs5n1Rae9X6S2a7JOg5fs12V3VfeniGrdvPoSMpqNqKNzhXOj1n15eL_ICMmbwDOON-UbMMElII-1SVtrCYK94yzK__LTtaQNffGvM5Z87CKOibpUb_BEvDFGEXMiSREBx7DEfcRkvlLmIweXpT2fyG9S8k9TvgvBH345A5Bz9pIb85JP7nT6rQ30o4XtxuqchhAxwLg-6QDHPQb3T-GOHlnR4I6ejyiVdqOl3AULKxk-e6GpwssVpqkoLycP8NJxwnCOUScN9qGKI1BBU9PP56BILz0mkIOeHAebzgJYli0UX8BuQOQt1XSOHvVEu9tAJnKuJiYGiA5hkl6VDewW5iDdzNIC0jF0ejhFX3QzibotTxACcJyJDopTaqDgkQZpSKTj-wsnqgoiUV8hzlNaMEv1ibvZBQxRAiLjkjl086n97jWgEyK__RNURTULFfFn_nIsS-FaEpes6bMVV-pu-pO5lFHg_03g5JaYJD7X0fnP7dSetJrl3xsm7Ip3vLFm36K8RionWmKaI30WstQ0CzSZW3iy7E5eveTHoKuOoQFAwlNx0uRT8StGg6qEo3AVrKuFYOseYnDQeybQXUqN3JAE3pKL-OcCgcrBMmUaq77NF0lYy0TvK1YwZr9gHXXKVEduBIdDSfSXJsi8UgDmvt-pTQsYyCl0SGGm1KGoEeLuIYjfLn-BfrLoOdr5H5l_huWcGj7">