title: How do I provide the shared library path for LLVM lld?
body: <p>I am trying to use LLVM lld linker instead of the GNU ld linker that I was previously using. </p>
  
  <pre><code>ld --version
  </code></pre>
  
  <blockquote>
    <p>LLD 8.0.0 (compatible with GNU linkers)</p>
  </blockquote>
  
  <p>I have some shared libraries placed in <code>/usr/local/lib</code>. I had the path set in <code>ld.so.conf</code> for the GNU ld linker to find the libraries. However, lld ignores <code>ld.so.conf</code>. I also tried to set the <code>LD_LIBRARY_PATH</code> </p>
  
  <pre><code>echo $LD_LIBRARY_PATH
  </code></pre>
  
  <blockquote>
    <p>/usr/local/lib</p>
  </blockquote>
  
  <p>But lld seems to ignore that as well. How can I add <code>/usr/local/lib</code> to the lld linker search path?</p>