title: How to prevent absolute paths in dynamic linker
body: <p>I have a solution with various projects, one of which is the main executable, and the rest are libraries the executable depends on. Each one compiles and links fine. However, trying to start the executable gives weird results. Using ldd, I see that the executable is trying to find libraries like so:</p>
  
  <pre><code>../bin/debug/libBlahBlah.so =&gt; not found
  </code></pre>
  
  <p>However, for each project, I'm declaring "bin/debug" (which is the output directory for these libraries) as a libdirs entry, and linking against the library by adding "BlahBlah" as a link, where "BlahBlah" is the name of the project. </p>
  
  <p>I'm not even sure how to accomplish this without premake. Any help is appreciated. </p>
  
  <p>The original intention was to have the library sit next to the executable then set an RPATH that searched for the library next to executable. With the way it is now, it searches for that absolute path relative to the executable... I cannot figure out how to get it off. </p>
  
  <p>I'm using premake5. I've tried to use the nightly and compiling myself. Upstream is currently not compiling however. </p>