title: "Transitive" dynamic link in c++
body: <p>Let's say I have a dynamic lib <code>a.so</code>.</p>
  
  <p>Then I'm building <code>b.so</code> against <code>a.so</code> only if <code>a.so</code> is present on the machine.</p>
  
  <p>Then I'm building executable <code>c</code> against <code>b.so</code>.</p>
  
  <p>I was hoping to forget everything about <code>a.so</code> in <code>c</code> <code>Makefile</code>, but it appears that I need to add <code>a</code> in <code>-L</code> flags or I got undefined reference to <code>a.so</code> symbol during <code>c</code> link.</p>
  
  <p>Is this normal with dynamic link or am I forgetting anything here?</p>