title: Linking shared library absolute vs. relative path
body: <p>I've been trying to link a shared library into my program and I want its path to be relative to my RPATH.</p>
  
  <p>However, when I ran ldd, I noticed that the absolute path of the shared library was linked. Any ideas why?</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>/home/projects/my_files/winter_fresh.so
  libgcc_s.so.1 =&gt; /home/tomo/anaconda3/lib/libgcc_s.so.1 (0x00007f0a3bf64000)
  libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0a3bd47000)
  libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0a3b97d000)
  /lib64/ld-linux-x86-64.so.2 (0x00007f0a3e369000)
  libstdc++.so.6 =&gt; /home/tomo/anaconda3/lib/libstdc++.so.6 (0x00007f0a3b643000)
  </code></pre>
  
  <p>The issue is the first file. I don't want the library for winter_fresh to be an absolute path, since I have an RPATH that contains it. </p>