title: need more clarity on compiling syntax for shared binaries using static dependencies
body: <p>I am compiling on linux and am trying to understand the complexities of shared and static libs, what can be done and what should not be done.</p>
  
  <p>Using the example of ffmpeg, I have x264 as an included dependency.</p>
  
  <p>Based on many posts here on SO, it seems a static build of x264 would be best. Then load these into several different version of ffmpeg dynamically as needed.</p>
  
  <p>What is the correct configure syntax when compiling both binaries.</p>
  
  <p>scenario one</p>
  
  <pre><code>x264 --enable-static --disable-shared
  ffmpeg --disable-static --enable-shared --enable-libx264  
  </code></pre>
  
  <p>or the other way round</p>
  
  <pre><code>x264 --disable-static --enable-shared    
  ffmpeg --enable-static --disable-shared --enable-libx264  
  </code></pre>
  
  <p>scenario two, assume a theoretical dependency waterfall, where we must include  (prog-x into x264) then x264 dynamically loaded into ffmpeg</p>
  
  <pre><code>progx--enable-static --disable-shared     
  x264 --enable-static --disable-shared
  ffmpeg --disable-static --enable-shared --enable-libx264  
  </code></pre>